diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-16 01:21:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-16 01:21:50 +0000 |
commit | c9eaa8b9ba58a4c6fb78a62a68068ac5bb51fd3d (patch) | |
tree | 182008a9631c2fe062409bbb7b49578ae8028235 /libio/iosetvbuf.c | |
parent | 7d7fe004f3557abc2d5d93e9a6392f18c4a94909 (diff) | |
download | glibc-c9eaa8b9ba58a4c6fb78a62a68068ac5bb51fd3d.tar.gz glibc-c9eaa8b9ba58a4c6fb78a62a68068ac5bb51fd3d.tar.xz glibc-c9eaa8b9ba58a4c6fb78a62a68068ac5bb51fd3d.zip |
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.
Diffstat (limited to 'libio/iosetvbuf.c')
-rw-r--r-- | libio/iosetvbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iosetvbuf.c b/libio/iosetvbuf.c index 5dc5eedffe..f63a3c2174 100644 --- a/libio/iosetvbuf.c +++ b/libio/iosetvbuf.c @@ -90,7 +90,7 @@ _IO_setvbuf (fp, buf, mode, size) goto unlock_return; } result = _IO_SETBUF (fp, buf, size) == NULL ? EOF : 0; - if (result == 0 && fp->_mode == 0) + if (result == 0 && fp->_vtable_offset == 0 && fp->_mode == 0) /* We also have to set the buffer using the wide char function. */ result = ((*fp->_wide_data->_wide_vtable->__setbuf) (fp, buf, size) == NULL ? EOF : 0); |