use fmtvprint to avoid needing
to copy the arguments. (stupid va_copy).
This commit is contained in:
parent
a0a331aad9
commit
5eb2d21999
1 changed files with 1 additions and 2 deletions
|
|
@ -29,8 +29,7 @@ Bvprint(Biobuf *bp, char *fmt, va_list arg)
|
||||||
f.flush = fmtBflush;
|
f.flush = fmtBflush;
|
||||||
f.farg = bp;
|
f.farg = bp;
|
||||||
f.nfmt = 0;
|
f.nfmt = 0;
|
||||||
f.args = arg;
|
n = fmtvprint(&f, fmt, arg);
|
||||||
n = dofmt(&f, fmt);
|
|
||||||
bp->ocount = (char*)f.to - (char*)f.stop;
|
bp->ocount = (char*)f.to - (char*)f.stop;
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue