diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-03-10 09:28:38 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-03-10 09:28:38 +0000 |
commit | 87a6c90a99a0d0529a28b5d7d85bbd696c52085c (patch) | |
tree | 9abdefbcf2f4c56efb9f2f89ba27f6e7ac18c170 | |
parent | b033c30b239dcb29f4e53d9fa12ac17463daea1a (diff) |
Notes
-rw-r--r-- | lib/libc/stdio/fgetln.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fgetln.c b/lib/libc/stdio/fgetln.c index b0f165918c95..df2282f14b2a 100644 --- a/lib/libc/stdio/fgetln.c +++ b/lib/libc/stdio/fgetln.c @@ -87,6 +87,7 @@ fgetln(FILE *fp, size_t *lenp) size_t off; FLOCKFILE(fp); + ORIENT(fp, -1); /* make sure there is input */ if (fp->_r <= 0 && __srefill(fp)) { *lenp = 0; |