BUG: fix copy file for HP

This commit is contained in:
Bill Hoffman 2002-02-21 17:32:55 -05:00
parent 513d48c5ea
commit 5cd08d0563
1 changed files with 1 additions and 1 deletions

View File

@ -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.