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

__srefill() to do it.
This commit is contained in:
Tim J. Robbins 2004-03-10 09:28:38 +00:00
parent b033c30b23
commit 87a6c90a99

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;