From f2cba24fc83b2955cf28140e0bb254dd051b6743 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 15 Aug 2001 18:40:16 +0000 Subject: (_IO_fwide): Don't reset file position to beginning of file, really get current position. --- libio/iofwide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio/iofwide.c') diff --git a/libio/iofwide.c b/libio/iofwide.c index 88d2d5e563..dba55f59da 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. */ -- cgit v1.2.3