mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
(_IO_fwide): Don't reset file position to beginning of file, really get current position.
This commit is contained in:
@@ -206,7 +206,7 @@ _IO_fwide (fp, mode)
|
|||||||
char streams have much more problems with not knowing the
|
char streams have much more problems with not knowing the
|
||||||
current position and so we should disable the optimization
|
current position and so we should disable the optimization
|
||||||
which allows the functions without knowing the position. */
|
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. */
|
/* Set the mode now. */
|
||||||
|
Reference in New Issue
Block a user