summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2000-02-19 22:23:49 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2000-02-19 22:23:49 +0000
commit868d7d0fd7f8a8bdd4802714a88e24b54b21c72b (patch)
tree7451bf2aeb8d293f408c13bcf1dc72a421c1c666
parent12c11d7a9e3c547b2f586e50b4db01dce97b601d (diff)
fix example. ok aaron@
-rw-r--r--lib/libc/stdio/fgets.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3
index 387f2ab2d1f..f27c4f09c3a 100644
--- a/lib/libc/stdio/fgets.3
+++ b/lib/libc/stdio/fgets.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fgets.3,v 1.8 1999/11/15 07:45:57 deraadt Exp $
+.\" $OpenBSD: fgets.3,v 1.9 2000/02/19 22:23:48 ericj Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -131,7 +131,7 @@ string is too long if it does not contain a newline:
char buf[1024], *p;
while (fgets(buf, sizeof(buf), fp)) {
- if (!(p = strchr(buf, '\en')) {
+ if (!(p = strchr(buf, '\en'))) {
fprintf(stderr, "input line too long.\en");
exit(1);
}