diff options
Diffstat (limited to 'src/libbio')
-rw-r--r-- | src/libbio/bvprint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libbio/bvprint.c b/src/libbio/bvprint.c index 84a2ff24..60b105fa 100644 --- a/src/libbio/bvprint.c +++ b/src/libbio/bvprint.c @@ -32,8 +32,7 @@ Bvprint(Biobuf *bp, char *fmt, va_list arg) fmtlocaleinit(&f, nil, nil, nil); n = fmtvprint(&f, fmt, arg); bp->ocount = (char*)f.to - (char*)f.stop; + if(n == 0) + n = f.nfmt; return n; } - - - |