mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
(_IO_fwide): Don't reset file position to beginning of file, really get current position.
This commit is contained in:
parent
86fe4412a1
commit
f2cba24fc8
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user