diff options
author | rsc <devnull@localhost> | 2004-04-25 21:13:58 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-25 21:13:58 +0000 |
commit | 62780722f528fdbc19afb48128f1638e55d1568b (patch) | |
tree | 31bc08d7dae6bd79403645ba6f65a199bc6ceab2 /src/libbio/bprint.c | |
parent | e5f0d957f2737346033dbd3175fb6a0803d841ba (diff) | |
download | plan9port-62780722f528fdbc19afb48128f1638e55d1568b.tar.gz plan9port-62780722f528fdbc19afb48128f1638e55d1568b.tar.bz2 plan9port-62780722f528fdbc19afb48128f1638e55d1568b.zip |
do flush properly
Diffstat (limited to 'src/libbio/bprint.c')
-rw-r--r-- | src/libbio/bprint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c index 56d700c4..2b66605c 100644 --- a/src/libbio/bprint.c +++ b/src/libbio/bprint.c @@ -14,5 +14,7 @@ Bprint(Biobuf *bp, char *fmt, ...) f.args = args; n = dofmt(&f, fmt); va_end(args); + if(n > 0 && Bfmtflush(&f) < 0) + return -1; return n; } |