mirror of
https://github.com/0intro/conterm
synced 2024-11-21 21:31:23 +03:00
sprint: the usual gcc "bug"
This commit is contained in:
parent
4f14409f56
commit
5cc6f05c4d
@ -14,7 +14,7 @@ sprint(char *buf, char *fmt, ...)
|
||||
* on PowerPC, the stack is 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 = -(uintptr)buf-1;
|
||||
|
||||
va_start(args, fmt);
|
||||
|
Loading…
Reference in New Issue
Block a user