tuse fmtvprint to avoid needing to copy the arguments. (stupid va_copy). - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5eb2d219998a7d7463509da6b98940c5205759e0 | |
parent a0a331aad99bbca5a13fa4b69593061f29dc3a29 | |
Author: rsc | |
Date: Thu, 6 Jan 2005 23:45:51 +0000 use fmtvprint to avoid needing tto copy the arguments. (stupid va_copy). Diffstat: M src/libbio/bvprint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- | |
diff --git a/src/libbio/bvprint.c b/src/libbio/bvprint.c | |
t@@ -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; } |