diff options
author | ache <ache@FreeBSD.org> | 2001-08-17 10:06:46 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-08-17 10:06:46 +0000 |
commit | 555ada99b67bf93e9ebb33f18a3b510f81e11ea3 (patch) | |
tree | a0cf490b19a3da0aa5138a0aa4a3afdb7c53bd91 /lib/libc/stdio/fseek.c | |
parent | ca91420dc83eb61f050e2c2e5c063ad0b8ab2b4c (diff) | |
download | FreeBSD-src-555ada99b67bf93e9ebb33f18a3b510f81e11ea3.zip FreeBSD-src-555ada99b67bf93e9ebb33f18a3b510f81e11ea3.tar.gz |
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.
Diffstat (limited to 'lib/libc/stdio/fseek.c')
-rw-r--r-- | lib/libc/stdio/fseek.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index e0a1648..8dc36e6 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -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); } |