Don't clear "we have offset" flag even if long is overflow for fseek(),
there is no harm to have it, it will reduce next call efforts.
This commit is contained in:
parent
ca91420dc8
commit
555ada99b6
@ -304,7 +304,6 @@ dumb:
|
||||
return (EOF);
|
||||
/* POSIX require long type resulting offset for fseek() */
|
||||
if (ltest && fp->_offset != (long)fp->_offset) {
|
||||
fp->_flags &= ~__SOFF;
|
||||
errno = EOVERFLOW;
|
||||
return (EOF);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user