diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-02-22 05:11:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-02-22 05:11:26 +0000 |
commit | 903b3396b8a1a5f4488649b7975cffed4c771e80 (patch) | |
tree | b195ff95e470db62038e0fafa4595116791189ea /libio | |
parent | 15e260e8e0b7f046f68275a1e1516561a516a0ee (diff) | |
download | glibc-903b3396b8a1a5f4488649b7975cffed4c771e80.zip glibc-903b3396b8a1a5f4488649b7975cffed4c771e80.tar.gz glibc-903b3396b8a1a5f4488649b7975cffed4c771e80.tar.bz2 |
Update.
2002-02-21 Jakub Jelinek <jakub@redhat.com>
* libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
* stdio-common/tst-fseek.c (main): Add test for this.
Diffstat (limited to 'libio')
-rw-r--r-- | libio/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index 37c47ee..0d02fca 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -880,7 +880,7 @@ _IO_file_seekoff_mmap (fp, offset, dir, mode) case _IO_seek_set: break; case _IO_seek_end: - offset = fp->_IO_read_end - fp->_IO_read_base + offset; + offset += fp->_IO_buf_end - fp->_IO_buf_base; break; } /* At this point, dir==_IO_seek_set. */ |