add va_start/va_end.
This commit is contained in:
parent
65cd9e4d85
commit
f5ff4947dd
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue