(flushbuf): If !FLUSH_ONLY, don't skip out early if no new data in buffer
authorroland <roland>
Wed, 15 Mar 1995 04:39:40 +0000 (04:39 +0000)
committerroland <roland>
Wed, 15 Mar 1995 04:39:40 +0000 (04:39 +0000)
after priming.

stdio/internals.c

index b01c5bd..c238bf3 100644 (file)
@@ -265,7 +265,7 @@ DEFUN(flushbuf, (fp, c),
            }
        }
 
-      if (fp->__bufp - fp->__buffer <= buffer_offset)
+      if (fp->__bufp - fp->__buffer <= buffer_offset && flush_only)
        {
          /* There is nothing new in the buffer, only data that
             was read back aligned from the file.  */