diff options
Diffstat (limited to 'lib/libc/stdio/fgets.c')
-rw-r--r-- | lib/libc/stdio/fgets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fgets.c b/lib/libc/stdio/fgets.c index 9148686..bb4ea4c 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) { |