plan9port

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

commit ee51985f90394959068f41aa42f898c9bb972f08
parent 22157b7a34bfaf5df78a6db6eafdf657ac23eb57
Author: rsc <devnull@localhost>
Date:   Fri, 27 Jan 2006 04:16:40 +0000

oops

Diffstat:
Mman/man3/bio.3 | 4+++-
Msrc/cmd/upas/ned/nedmail.c | 2+-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/man/man3/bio.3 b/man/man3/bio.3 @@ -285,7 +285,9 @@ to occur and there is an error, a negative value .RB ( Beof ) is returned. -Otherwise, the number of bytes output is returned. +Otherwise, +.I Bprint +returns zero. .I Bvprint does the same except it takes as argument a .B va_list diff --git a/src/cmd/upas/ned/nedmail.c b/src/cmd/upas/ned/nedmail.c @@ -1512,7 +1512,7 @@ printpartindented(String *s, char *part, char *indent) if(interrupted) break; p[Blinelen(b)-1] = 0; - if(Bprint(&out, "%s%s\n", indent, p) <= 0) + if(Bprint(&out, "%s%s\n", indent, p) < 0) break; } Bprint(&out, "\n");