summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fgets.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-08-13 09:30:41 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-08-13 09:30:41 +0000
commite74101e4eff767325553039def89de70b70f36d3 (patch)
treeb19b15290ce2e0d3c58bac59a2bcb0295e1af757 /lib/libc/stdio/fgets.c
parent149004e99dc4abe92b530803e963e50943750f40 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/fgets.c')
-rw-r--r--lib/libc/stdio/fgets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fgets.c b/lib/libc/stdio/fgets.c
index 9148686e44ad..bb4ea4c70223 100644
--- a/lib/libc/stdio/fgets.c
+++ b/lib/libc/stdio/fgets.c
@@ -66,6 +66,7 @@ fgets(buf, n, fp)
return (NULL);
FLOCKFILE(fp);
+ ORIENT(fp, -1);
s = buf;
n--; /* leave space for NUL */
while (n != 0) {