diff options
Diffstat (limited to 'libc/stdio/fseeko.c')
-rw-r--r-- | libc/stdio/fseeko.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/fseeko.c b/libc/stdio/fseeko.c index f63ebad4e..251040231 100644 --- a/libc/stdio/fseeko.c +++ b/libc/stdio/fseeko.c @@ -42,7 +42,7 @@ int FSEEK(register FILE *stream, OFFSET_TYPE offset, int whence) if ((!__STDIO_STREAM_IS_WRITING(stream) || !__STDIO_COMMIT_WRITE_BUFFER(stream)) - && ((whence != SEEK_CUR) + && ((whence != SEEK_CUR) || (__stdio_adjust_position(stream, &pos) >= 0)) && (__SEEK(stream, &pos, whence) >= 0) ) { |