aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/man3/bio.34
-rw-r--r--src/cmd/upas/ned/nedmail.c2
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");