commit ee51985f90394959068f41aa42f898c9bb972f08 from: rsc date: Fri Jan 27 04:16:40 2006 UTC oops commit - 22157b7a34bfaf5df78a6db6eafdf657ac23eb57 commit + ee51985f90394959068f41aa42f898c9bb972f08 blob - 02f36aee63ee72c9b5df9dd37b1dda4402abe350 blob + 3c66b57a89ef89fec776e26d8b0ac6dcad78325f --- man/man3/bio.3 +++ 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 blob - 4fa7a88f8b29e568e0dd49fc8ee5458d7931745d blob + 29afbbf9ee8ab7cc13d9e6ef452a89c74b22adf1 --- src/cmd/upas/ned/nedmail.c +++ 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");