From c1542ae4851a2c2c39a311f08401defbd3ec1a6c Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 10 Mar 2004 09:28:38 +0000 Subject: Set the stream orientation explicitly in fgetln() instead of relying on __srefill() to do it. --- lib/libc/stdio/fgetln.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/stdio') 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; -- cgit v1.1