summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/fseek.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c
index b2d98a9..0e1d461 100644
--- a/lib/libc/stdio/fseek.c
+++ b/lib/libc/stdio/fseek.c
@@ -236,14 +236,10 @@ _fseeko(fp, offset, whence, ltest)
goto abspos;
curoff += fp->_r; /* kill off ungetc */
n = fp->_extra->_up - fp->_bf._base;
- if (curoff < 0 && -((off_t)n) < OFF_MIN - curoff)
- goto abspos;
curoff -= n;
n += fp->_ur;
} else {
n = fp->_p - fp->_bf._base;
- if (curoff < 0 && -((off_t)n) < OFF_MIN - curoff)
- goto abspos;
curoff -= n;
n += fp->_r;
}
OpenPOWER on IntegriCloud