summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-03-10 09:28:38 +0000
committertjr <tjr@FreeBSD.org>2004-03-10 09:28:38 +0000
commitc1542ae4851a2c2c39a311f08401defbd3ec1a6c (patch)
tree9abdefbcf2f4c56efb9f2f89ba27f6e7ac18c170 /lib
parent985503f0e43f5c48bebea94a37af7f06ee8b61a3 (diff)
downloadFreeBSD-src-c1542ae4851a2c2c39a311f08401defbd3ec1a6c.zip
FreeBSD-src-c1542ae4851a2c2c39a311f08401defbd3ec1a6c.tar.gz
Set the stream orientation explicitly in fgetln() instead of relying on
__srefill() to do it.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/fgetln.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fgetln.c b/lib/libc/stdio/fgetln.c
index b0f1659..df2282f 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;
OpenPOWER on IntegriCloud