Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Correct wrong comparison in example.
details: https://anonhg.NetBSD.org/src/rev/41efe3340d28
branches: trunk
changeset: 534314:41efe3340d28
user: mjl <mjl%NetBSD.org@localhost>
date: Sun Jul 21 19:04:03 2002 +0000
description:
Correct wrong comparison in example.
diffstat:
lib/libc/stdio/fgets.3 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 78c422303e07 -r 41efe3340d28 lib/libc/stdio/fgets.3
--- a/lib/libc/stdio/fgets.3 Sun Jul 21 15:32:17 2002 +0000
+++ b/lib/libc/stdio/fgets.3 Sun Jul 21 19:04:03 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: fgets.3,v 1.13 2002/07/10 14:37:16 yamt Exp $
+.\" $NetBSD: fgets.3,v 1.14 2002/07/21 19:04:03 mjl Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -146,7 +146,7 @@
char buf[1024], *p;
while (fgets(buf, sizeof(buf), fp) != NULL) {
- if ((p = strchr(buf, '\en')) != NULL) {
+ if ((p = strchr(buf, '\en')) == NULL) {
fprintf(stderr, "input line too long.\en");
exit(1);
}
Home |
Main Index |
Thread Index |
Old Index