commit 5eb2d219998a7d7463509da6b98940c5205759e0 from: rsc date: Thu Jan 06 23:45:51 2005 UTC use fmtvprint to avoid needing to copy the arguments. (stupid va_copy). commit - a0a331aad99bbca5a13fa4b69593061f29dc3a29 commit + 5eb2d219998a7d7463509da6b98940c5205759e0 blob - 7a09f1c0fc917626ccb0a1ed8da52a070a11f2bc blob + 5ac070d497b143a8fe5a45bc0857284d4fccce5f --- src/libbio/bvprint.c +++ src/libbio/bvprint.c @@ -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; }