diff options
Diffstat (limited to 'libio/strops.c')
-rw-r--r-- | libio/strops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libio/strops.c b/libio/strops.c index 6a9a8846c4..1cd0bf6c3d 100644 --- a/libio/strops.c +++ b/libio/strops.c @@ -133,7 +133,10 @@ _IO_str_overflow (FILE *fp, int c) *fp->_IO_write_ptr++ = (unsigned char) c; if (fp->_IO_write_ptr > fp->_IO_read_end) fp->_IO_read_end = fp->_IO_write_ptr; - return c; + if (flush_only) + return 0; + else + return c; } libc_hidden_def (_IO_str_overflow) |