From ee51985f90394959068f41aa42f898c9bb972f08 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 27 Jan 2006 04:16:40 +0000 Subject: oops --- man/man3/bio.3 | 4 +++- src/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 index 02f36aee..3c66b57a 100644 --- 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 index 4fa7a88f..29afbbf9 100644 --- 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"); -- cgit v1.2.3