From 903b3396b8a1a5f4488649b7975cffed4c771e80 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 22 Feb 2002 05:11:26 +0000 Subject: Update. 2002-02-21 Jakub Jelinek * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END. * stdio-common/tst-fseek.c (main): Add test for this. --- libio/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio/fileops.c') 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. */ -- cgit v1.1