1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

(_IO_fwide): Don't reset file position to beginning of file, really get current position.

This commit is contained in:
Ulrich Drepper
2001-08-15 18:40:16 +00:00
parent 86fe4412a1
commit f2cba24fc8

View File

@@ -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. */