[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: replace_by_integer
From: terra () gnome ! org (Morten Welinder)
Date: 2004-09-21 14:51:27
Message-ID: 20040921145127.B73461422D58 () darter ! rentec ! com
[Download RAW message or body]
Linus, please do a
bk pull http://sparse-mw.bkbits.net:8080/janitorial
This will update the following files:
pre-process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
through these ChangeSets:
<welinder@troll.com> (04/09/21 1.798)
Fix replace_by_integer.
diff -Nru a/pre-process.c b/pre-process.c
--- a/pre-process.c 2004-09-21 10:51:05 -04:00
+++ b/pre-process.c 2004-09-21 10:51:05 -04:00
@@ -87,8 +87,8 @@
static void replace_with_integer(struct token *token, unsigned int val)
{
- char *buf = __alloc_bytes(10);
- sprintf(buf, "%d", val);
+ char *buf = __alloc_bytes(11);
+ sprintf(buf, "%u", val);
token_type(token) = TOKEN_NUMBER;
token->number = buf;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic