Commit 5cd08d05 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: fix copy file for HP

parent 513d48c5
...@@ -884,7 +884,7 @@ void cmSystemTools::cmCopyFile(const char* source, ...@@ -884,7 +884,7 @@ void cmSystemTools::cmCopyFile(const char* source,
// Final line, but with no newline. // Final line, but with no newline.
fout.write(buffer, count); 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 // Part of a line longer than our buffer, clear the fail bit of
// the stream so that we can continue. // the stream so that we can continue.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment