Set the stream orientation explicitly in fgetln() instead of relying on

__srefill() to do it.
This commit is contained in:
tjr 2004-03-10 09:28:38 +00:00
parent 985503f0e4
commit c1542ae485

View File

@ -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;