plan9port

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

commit f5ff4947dd510fa5b6ab6fc71ce2515a313402ce
parent 65cd9e4d852426549226519b25cf1f1a78445b04
Author: rsc <devnull@localhost>
Date:   Tue, 28 Dec 2004 03:41:17 +0000

add va_start/va_end.

Diffstat:
Msrc/libbio/bprint.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c @@ -10,7 +10,9 @@ Bprint(Biobuf *bp, char *fmt, ...) if(Bfmtinit(&f, bp) < 0) return -1; + va_start(args, fmt); n = fmtprint(&f, fmt, args); + va_end(args); if(n > 0 && Bfmtflush(&f) < 0) return -1; return n;