Skip to content

Commit

Permalink
(_IO_fwide): Don't reset file position to beginning of file, really g…
Browse files Browse the repository at this point in the history
…et current position.
  • Loading branch information
Ulrich Drepper committed Aug 15, 2001
1 parent 86fe441 commit f2cba24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libio/iofwide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit f2cba24

Please sign in to comment.