From: Ulrich Drepper Date: Wed, 15 Aug 2001 18:40:16 +0000 (+0000) Subject: (_IO_fwide): Don't reset file position to beginning of file, really get current position. X-Git-Tag: cvs/glibc-2_2_4~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2cba24fc83b2955cf28140e0bb254dd051b6743;p=thirdparty%2Fglibc.git (_IO_fwide): Don't reset file position to beginning of file, really get current position. --- diff --git a/libio/iofwide.c b/libio/iofwide.c index 88d2d5e5631..dba55f59da3 100644 --- a/libio/iofwide.c +++ b/libio/iofwide.c @@ -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. */