add va_start/va_end.
This commit is contained in:
parent
65cd9e4d85
commit
f5ff4947dd
@ -10,7 +10,9 @@ Bprint(Biobuf *bp, char *fmt, ...)
|
|||||||
|
|
||||||
if(Bfmtinit(&f, bp) < 0)
|
if(Bfmtinit(&f, bp) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
va_start(args, fmt);
|
||||||
n = fmtprint(&f, fmt, args);
|
n = fmtprint(&f, fmt, args);
|
||||||
|
va_end(args);
|
||||||
if(n > 0 && Bfmtflush(&f) < 0)
|
if(n > 0 && Bfmtflush(&f) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
return n;
|
return n;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user