# HG changeset patch # User Giulio Moro # Date 1444841758 -3600 # Node ID 45fc760622c94e1e780042be0fd8be07a928ad35 # Parent f36313cbb55d55241b14224079756cb429a30189 Fixed WriteFile, now it does not hang if echo is off and format is binary diff -r f36313cbb55d -r 45fc760622c9 core/WriteFile.cpp --- a/core/WriteFile.cpp Tue Oct 13 02:01:05 2015 +0100 +++ b/core/WriteFile.cpp Wed Oct 14 17:55:58 2015 +0100 @@ -203,7 +203,7 @@ } void WriteFile::writeOutput(bool writeAll){ - while( getOffsetFromPointer(textReadPointer) >= lineLength){ //if there is less than one line worth of data to write, skip over. + while((echo == true || fileType == kText) && getOffsetFromPointer(textReadPointer) >= lineLength){ //if there is less than one line worth of data to write, skip over. // So we make sure we only write full lines writeLine(); }