From 5cd08d0563c808243cfbac63df7aa57b9a4d9b7b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 21 Feb 2002 17:32:55 -0500 Subject: [PATCH] BUG: fix copy file for HP --- Source/cmSystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index fa639e314..080efcd40 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.