vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit d6e5c080a23fcb914b740db48573305f3712eba0
parent ab8aaa028c67e97395cd062ff1c727e9693b6313
Author: Christoph Lohmann <20h@r-36.net>
Date:   Fri, 25 Feb 2011 19:36:08 +0100

Fixing the fmt problem for now, as seen in the original Plan 9 source.

Diffstat:
src/9vx/a/fmt.c | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/9vx/a/fmt.c b/src/9vx/a/fmt.c @@ -2744,19 +2744,10 @@ int sprint(char *buf, char *fmt, ...) { int n; - uint len; va_list args; - len = 1<<30; /* big number, but sprint is deprecated anyway */ - /* - * 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) - len = -(uintptr)buf-1; - va_start(args, fmt); - n = vsnprint(buf, len, fmt, args); + n = vsnprint(buf, 65536, fmt, args); va_end(args); return n; }