Turns out we were doing this for a (maybe not good, but reasonable) reason.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 14 Aug 2017 02:42:13 -0400
changeset 1572 5c091e04ac46
parent 1571 fbd9698219c1
child 1573 6eec1a358f3d
Turns out we were doing this for a (maybe not good, but reasonable) reason.
src/physfs.c
--- a/src/physfs.c	Mon Aug 14 02:28:00 2017 -0400
+++ b/src/physfs.c	Mon Aug 14 02:42:13 2017 -0400
@@ -2795,7 +2795,6 @@
     } /* if */
 
     /* would overflow buffer. Flush and then write the new objects, too. */
-    /* !!! FIXME-3.0: this should refill the buffer, not flush everything down. */
     BAIL_IF_ERRPASS(!PHYSFS_flush(handle), -1);
     return fh->io->write(fh->io, buffer, len);
 } /* doBufferedWrite */