summary refs log tree commit diff
path: root/libio/iofputs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofputs.c')
-rw-r--r--libio/iofputs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofputs.c b/libio/iofputs.c
index 32acf987a5..5b0553f327 100644
--- a/libio/iofputs.c
+++ b/libio/iofputs.c
@@ -36,7 +36,7 @@ _IO_fputs (str, fp)
   CHECK_FILE (fp, EOF);
   _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)
       && _IO_sputn (fp, str, len) == len)
     result = 1;
   _IO_funlockfile (fp);