aboutsummaryrefslogtreecommitdiff
path: root/src/libbio
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-28 03:41:17 +0000
committerrsc <devnull@localhost>2004-12-28 03:41:17 +0000
commitf5ff4947dd510fa5b6ab6fc71ce2515a313402ce (patch)
tree5b6b63e536839f61dd35991118bc2935f7f34ab8 /src/libbio
parent65cd9e4d852426549226519b25cf1f1a78445b04 (diff)
downloadplan9port-f5ff4947dd510fa5b6ab6fc71ce2515a313402ce.tar.gz
plan9port-f5ff4947dd510fa5b6ab6fc71ce2515a313402ce.tar.bz2
plan9port-f5ff4947dd510fa5b6ab6fc71ce2515a313402ce.zip
add va_start/va_end.
Diffstat (limited to 'src/libbio')
-rw-r--r--src/libbio/bprint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c
index 878bfb63..bfcb4a03 100644
--- 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;