unbreak line-based flushing

Repairs a problem introduced by 8e7792d85a.
This commit is contained in:
Matthew Flatt 2016-05-09 12:47:46 -06:00
parent 8e7792d85a
commit d92be80f77

View File

@ -8318,7 +8318,7 @@ fd_write_string(Scheme_Output_Port *port,
fop = (Scheme_FD *)port->port_data;
if (!flush && !fop->flushing && (fop->flush != MZ_FLUSH_ALWAYS)) {
if (!flush && !fop->flushing && (fop->flush == MZ_FLUSH_NEVER)) {
l = MZPORT_FD_BUFFSIZE - fop->bufcount;
if (len <= l) {
memcpy(fop->buffer + fop->bufcount, str + d, len);