summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorericj <ericj@openbsd.org>2000-02-19 22:23:48 +0000
committerericj <ericj@openbsd.org>2000-02-19 22:23:48 +0000
commitc3a8ed378321e410d8fb1baac52e97db64c5b652 (patch)
treed0a6273b903eaba0b24b5cba0a043991f356a502 /lib/libc/stdio
parentflush the caches that need flushing on context switch. (diff)
downloadwireguard-openbsd-c3a8ed378321e410d8fb1baac52e97db64c5b652.tar.xz
wireguard-openbsd-c3a8ed378321e410d8fb1baac52e97db64c5b652.zip
fix example. ok aaron@
Diffstat (limited to 'lib/libc/stdio')
-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);
}