Set the stream orientation explicitly in fgetln() instead of relying on
__srefill() to do it.
This commit is contained in:
parent
b033c30b23
commit
87a6c90a99
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user