diff options
Diffstat (limited to 'libio/strops.c')
-rw-r--r-- | libio/strops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/strops.c b/libio/strops.c index 8a6c56d..281141e 100644 --- a/libio/strops.c +++ b/libio/strops.c @@ -124,7 +124,7 @@ DEFUN(_IO_str_overflow, (fp, c), fp->_IO_read_ptr = fp->_IO_read_end; } pos = fp->_IO_write_ptr - fp->_IO_write_base; - if (pos >= _IO_blen(fp) + flush_only) + if (pos >= (_IO_size_t) (_IO_blen(fp) + flush_only)) { if (fp->_flags & _IO_USER_BUF) /* not allowed to enlarge */ return EOF; |