From 5eb2d219998a7d7463509da6b98940c5205759e0 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 6 Jan 2005 23:45:51 +0000 Subject: use fmtvprint to avoid needing to copy the arguments. (stupid va_copy). --- src/libbio/bvprint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libbio') diff --git a/src/libbio/bvprint.c b/src/libbio/bvprint.c index 7a09f1c0..5ac070d4 100644 --- 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; } -- cgit v1.2.3