plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 5eb2d219998a7d7463509da6b98940c5205759e0
parent a0a331aad99bbca5a13fa4b69593061f29dc3a29
Author: rsc <devnull@localhost>
Date:   Thu,  6 Jan 2005 23:45:51 +0000

use fmtvprint to avoid needing
to copy the arguments.
(stupid va_copy).

Diffstat:
Msrc/libbio/bvprint.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/libbio/bvprint.c b/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; }