summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index fa639e3..080efcd 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -884,7 +884,7 @@ void cmSystemTools::cmCopyFile(const char* source,
// Final line, but with no newline.
fout.write(buffer, count);
}
- else if(fin.fail())
+ else if ( count == buffer_length - 1 )
{
// Part of a line longer than our buffer, clear the fail bit of
// the stream so that we can continue.