From 7ba4ff5becea2074955758024f3418d6ac79860f Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Tue, 4 Mar 2008 13:23:06 +0000 Subject: 20080304-1306 --- lib9/sprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib9/sprint.c') diff --git a/lib9/sprint.c b/lib9/sprint.c index 86c79a32..d8b8b8e1 100644 --- a/lib9/sprint.c +++ b/lib9/sprint.c @@ -25,7 +25,7 @@ sprint(char *buf, char *fmt, ...) * the stack might be near the top of memory, so * we must be sure not to overflow a 32-bit pointer. */ - if(buf+len < buf) + if((uintptr)buf+len < (uintptr)buf) len = -(uint)buf-1; va_start(args, fmt); -- cgit v1.2.3