aboutsummaryrefslogtreecommitdiff
path: root/libio/iofwide.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-15 18:40:16 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-15 18:40:16 +0000
commitf2cba24fc83b2955cf28140e0bb254dd051b6743 (patch)
tree9058a144f535d08223df90e572ad02d4e1491652 /libio/iofwide.c
parent86fe4412a135f124da9da8ed1e08184eb10f1c17 (diff)
downloadglibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.zip
glibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.tar.gz
glibc-f2cba24fc83b2955cf28140e0bb254dd051b6743.tar.bz2
(_IO_fwide): Don't reset file position to beginning of file, really get current position.
Diffstat (limited to 'libio/iofwide.c')
-rw-r--r--libio/iofwide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofwide.c b/libio/iofwide.c
index 88d2d5e..dba55f5 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. */