aboutsummaryrefslogtreecommitdiff
path: root/libio/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c2
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. */