PowerPC Linux support from ericvh.
Mainly adding va_copy/va_end. Also fix bug in sprint wrapping around top of memory.
This commit is contained in:
parent
c8c0df440f
commit
984e353160
16 changed files with 54 additions and 17 deletions
|
|
@ -11,9 +11,10 @@ Bprint(Biobuf *bp, char *fmt, ...)
|
|||
if(Bfmtinit(&f, bp) < 0)
|
||||
return -1;
|
||||
va_start(args, fmt);
|
||||
f.args = args;
|
||||
va_copy(f.args, args);
|
||||
n = dofmt(&f, fmt);
|
||||
va_end(args);
|
||||
va_end(f.args);
|
||||
if(n > 0 && Bfmtflush(&f) < 0)
|
||||
return -1;
|
||||
return n;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue