From 65cd9e4d852426549226519b25cf1f1a78445b04 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 03:40:46 +0000 Subject: use fmtprint to avoid va_copy --- src/libbio/bprint.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c index f8a4d94f..878bfb63 100644 --- a/src/libbio/bprint.c +++ b/src/libbio/bprint.c @@ -10,11 +10,7 @@ Bprint(Biobuf *bp, char *fmt, ...) if(Bfmtinit(&f, bp) < 0) return -1; - va_start(args, fmt); - va_copy(f.args, args); - n = dofmt(&f, fmt); - va_end(args); - va_end(f.args); + n = fmtprint(&f, fmt, args); if(n > 0 && Bfmtflush(&f) < 0) return -1; return n; -- cgit v1.2.3