diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-03-04 13:23:06 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-03-04 13:23:06 +0000 |
| commit | 7ba4ff5becea2074955758024f3418d6ac79860f (patch) | |
| tree | 686f57616357513d65ea1df435e95faeea6613c1 /lib9 | |
| parent | 2a8b0ff0deda217f24a02cac2f9402b075fb019f (diff) | |
20080304-1306
Diffstat (limited to 'lib9')
| -rw-r--r-- | lib9/sprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
