From c9eaa8b9ba58a4c6fb78a62a68068ac5bb51fd3d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Aug 1999 01:21:50 +0000 Subject: Update. 1999-08-10 H.J. Lu * 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. --- libio/iofwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio/iofwrite.c') diff --git a/libio/iofwrite.c b/libio/iofwrite.c index 9be18bd8e0..411eeb29a9 100644 --- a/libio/iofwrite.c +++ b/libio/iofwrite.c @@ -41,7 +41,7 @@ _IO_fwrite (buf, size, count, fp) return count; _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp); _IO_flockfile (fp); - if (_IO_fwide (fp, -1) == -1) + if (fp->_vtable_offset != 0 || _IO_fwide (fp, -1) == -1) written = _IO_sputn (fp, (const char *) buf, request); _IO_funlockfile (fp); _IO_cleanup_region_end (0); -- cgit 1.4.1