(_IO_fwide): Don't reset file position to beginning of file, really get current position.
authorUlrich Drepper <drepper@redhat.com>
Wed, 15 Aug 2001 18:40:16 +0000 (18:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 15 Aug 2001 18:40:16 +0000 (18:40 +0000)
libio/iofwide.c

index 88d2d5e..dba55f5 100644 (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.  */