plan9port

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

commit f9b88a7b9c86fab0deba31d8d7faf40fcac3a09a
parent 5885bf4c91b47af9d0cb5074c1873c20ccf11fed
Author: rsc <devnull@localhost>
Date:   Sun,  2 Jul 2006 15:24:56 +0000

return number of bytes output

Diffstat:
Msrc/libbio/bvprint.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 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; } - - -