diff options
author | rsc <devnull@localhost> | 2005-01-06 23:45:51 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-06 23:45:51 +0000 |
commit | 5eb2d219998a7d7463509da6b98940c5205759e0 (patch) | |
tree | 580ecf0eff531fba4c01716c4713caec744aae10 /src | |
parent | a0a331aad99bbca5a13fa4b69593061f29dc3a29 (diff) | |
download | plan9port-5eb2d219998a7d7463509da6b98940c5205759e0.tar.gz plan9port-5eb2d219998a7d7463509da6b98940c5205759e0.tar.bz2 plan9port-5eb2d219998a7d7463509da6b98940c5205759e0.zip |
use fmtvprint to avoid needing
to copy the arguments.
(stupid va_copy).
Diffstat (limited to 'src')
-rw-r--r-- | src/libbio/bvprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |