diff options
| author | rsc <devnull@localhost> | 2006-07-02 15:24:56 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2006-07-02 15:24:56 +0000 |
| commit | f9b88a7b9c86fab0deba31d8d7faf40fcac3a09a (patch) | |
| tree | 7997c59d1a8256965f315c24dc31b713f012d04c /src/libbio | |
| parent | 5885bf4c91b47af9d0cb5074c1873c20ccf11fed (diff) | |
| download | plan9port-f9b88a7b9c86fab0deba31d8d7faf40fcac3a09a.tar.gz plan9port-f9b88a7b9c86fab0deba31d8d7faf40fcac3a09a.zip | |
return number of bytes output
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; } - - - |
