mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
1999-08-10 H.J. Lu <hjl@gnu.org> * stdio-common/vfprintf.c (ORIENT): Check for the old stream. (vfprintf): Likewise. * stdio-common/vfscanf.c (ORIENT): Likewise. * libio/genops.c (__underflow): Likewise. (__uflow): Likewise. * libio/iofputs.c (_IO_fputs): Likewise. * libio/ioftell.c (_IO_ftell): Likewise. * libio/iofwrite.c (_IO_fwrite): Likewise. * libio/ioputs.c (_IO_puts): Likewise. * libio/iosetbuffer.c (_IO_setbuffer): Likewise. * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
This commit is contained in:
@@ -38,7 +38,7 @@ _IO_ftell (fp)
|
||||
pos = _IO_seekoff (fp, 0, _IO_seek_cur, 0);
|
||||
if (_IO_in_backup (fp))
|
||||
{
|
||||
if (fp->_mode < 0)
|
||||
if (fp->_vtable_offset != 0 || fp->_mode < 0)
|
||||
pos -= fp->_IO_save_end - fp->_IO_save_base;
|
||||
else
|
||||
/* XXX For now. */
|
||||
|
||||
Reference in New Issue
Block a user