diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-15 18:40:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-15 18:40:16 +0000 |
commit | f2cba24fc83b2955cf28140e0bb254dd051b6743 (patch) | |
tree | 9058a144f535d08223df90e572ad02d4e1491652 /libio | |
parent | 86fe4412a135f124da9da8ed1e08184eb10f1c17 (diff) | |
download | glibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.tar glibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.tar.gz glibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.tar.bz2 glibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.zip |
(_IO_fwide): Don't reset file position to beginning of file, really get current position.
Diffstat (limited to 'libio')
-rw-r--r-- | libio/iofwide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofwide.c b/libio/iofwide.c index 88d2d5e563..dba55f59da 100644 --- a/libio/iofwide.c +++ b/libio/iofwide.c @@ -206,7 +206,7 @@ _IO_fwide (fp, mode) char streams have much more problems with not knowing the current position and so we should disable the optimization which allows the functions without knowing the position. */ - fp->_offset = _IO_SYSSEEK (fp, 0, 0); + fp->_offset = _IO_SYSSEEK (fp, 0, _IO_seek_cur); } /* Set the mode now. */ |