(_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
1 changed files with 1 additions and 1 deletions

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