fix bug in bprint. fmtprint => fmtvprint
This commit is contained in:
parent
f7b74c1725
commit
e2f52703c2
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ Bprint(Biobuf *bp, char *fmt, ...)
|
||||||
if(Bfmtinit(&f, bp) < 0)
|
if(Bfmtinit(&f, bp) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
n = fmtprint(&f, fmt, args);
|
n = fmtvprint(&f, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
if(n > 0 && Bfmtflush(&f) < 0)
|
if(n > 0 && Bfmtflush(&f) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue