use fmtvprint to avoid needing

to copy the arguments.
(stupid va_copy).
This commit is contained in:
rsc 2005-01-06 23:45:51 +00:00
parent a0a331aad9
commit 5eb2d21999

View file

@ -29,8 +29,7 @@ Bvprint(Biobuf *bp, char *fmt, va_list arg)
f.flush = fmtBflush;
f.farg = bp;
f.nfmt = 0;
f.args = arg;
n = dofmt(&f, fmt);
n = fmtvprint(&f, fmt, arg);
bp->ocount = (char*)f.to - (char*)f.stop;
return n;
}