diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | libio/wfileops.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index b1ccca4101..90ca90c165 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2014-03-04 Siddhesh Poyarekar <siddhesh@redhat.com> + * libio/wfileops.c (do_ftell_wide): Fix up formatting. + * libio/fileops.c (do_ftell): Use cached offset when available. * libio/iofwide.c (do_ftell_wide): Likewise. diff --git a/libio/wfileops.c b/libio/wfileops.c index 776bb4a4ba..8b2e1080b6 100644 --- a/libio/wfileops.c +++ b/libio/wfileops.c @@ -699,8 +699,8 @@ do_ftell_wide (_IO_FILE *fp) offset += outstop - out; } - /* _IO_read_end coincides with fp._offset, so the actual file position - is fp._offset - (_IO_read_end - new_write_ptr). */ + /* _IO_read_end coincides with fp._offset, so the actual file + position is fp._offset - (_IO_read_end - new_write_ptr). */ offset -= fp->_IO_read_end - fp->_IO_write_ptr; } |