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.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;
} }