소스 검색

BUG: fix copy file for HP

Bill Hoffman 24 년 전
부모
커밋
5cd08d0563
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/cmSystemTools.cxx

+ 1 - 1
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.