From: Andrew Morton `end' is a pointer, so long-long-wrong. Just use -1, which works. Cc: Jeremy Fitzhardinge Cc: Chris Wright Signed-off-by: Andrew Morton --- lib/vsprintf.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN lib/vsprintf.c~fix-bounds-check-in-vsnprintf-to-allow-for-a-0-size-and-tidy lib/vsprintf.c --- 25/lib/vsprintf.c~fix-bounds-check-in-vsnprintf-to-allow-for-a-0-size-and-tidy Tue Jun 20 17:53:31 2006 +++ 25-akpm/lib/vsprintf.c Tue Jun 20 17:53:31 2006 @@ -287,7 +287,7 @@ int vsnprintf(char *buf, size_t size, co /* Make sure end is always >= buf */ if (end < buf) { - end = ((void *) ~0ull); + end = ((void *)-1); size = end - buf; } _