| commit | f9b88a7b9c86fab0deba31d8d7faf40fcac3a09a | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Sun Jul 02 15:24:56 2006 +0000 |
| committer | rsc <devnull@localhost> | Sun Jul 02 15:24:56 2006 +0000 |
| tree | 7997c59d1a8256965f315c24dc31b713f012d04c | |
| parent | 5885bf4c91b47af9d0cb5074c1873c20ccf11fed [diff] |
return number of bytes output
diff --git a/src/libbio/bvprint.c b/src/libbio/bvprint.c index 84a2ff2..60b105f 100644 --- a/src/libbio/bvprint.c +++ b/src/libbio/bvprint.c
@@ -32,8 +32,7 @@ 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; } - - -