* Buffered output needs to be flushed in several places. Added calls to
[citadel.git] / citadel / file_ops.c
index cc0fd8ee2926e745a2e2bd11e97518111d6c0dbf..1f94f23e931acb8eecff69f36e53e009197ae24d 100644 (file)
@@ -726,6 +726,7 @@ void cmd_writ(char *cmdbuf)
        }
 
        cprintf("%d %d\n", SEND_BINARY, bytes);
+       flush_output();
        client_read(buf, bytes);
        fwrite(buf, bytes, 1, CC->upload_fp);
 }