diff options
Diffstat (limited to 'libbio/bvprint.c')
| -rw-r--r-- | libbio/bvprint.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbio/bvprint.c b/libbio/bvprint.c index c11b1dc3..15074fb0 100644 --- a/libbio/bvprint.c +++ b/libbio/bvprint.c @@ -29,8 +29,15 @@ Bvprint(Biobuf *bp, char *fmt, va_list arg) f.flush = fmtBflush; f.farg = bp; f.nfmt = 0; +#ifdef va_copy + va_copy(f.args, arg); +#else f.args = arg; +#endif n = dofmt(&f, fmt); +#ifdef va_copy + va_end(f.args); +#endif bp->ocount = (char*)f.to - (char*)f.stop; return n; } |
