diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-18 21:26:30 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-18 21:26:30 (GMT) |
commit | e51844f83dd8f25269d6779e31e8b77b36b8b742 (patch) | |
tree | f63818e2c701b11d2408c8c466169291866fb4d8 | |
parent | 17b02b6530e94012df32dbb3d6dc308714acfe70 (diff) | |
download | CMake-e51844f83dd8f25269d6779e31e8b77b36b8b742.zip CMake-e51844f83dd8f25269d6779e31e8b77b36b8b742.tar.gz CMake-e51844f83dd8f25269d6779e31e8b77b36b8b742.tar.bz2 |
BUG: use pclose not fclose
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 3164d61..bbbd3a3 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -751,7 +751,7 @@ bool cmSystemTools::RunCommand(const char* command, cmSystemTools::RemoveFile(tempFile.c_str()); return true; #else - std::cout << "runing " << command << std::endl; + std::cout << "running " << command << std::endl; FILE* cpipe = popen(command, "r"); if(!cpipe) { @@ -764,7 +764,7 @@ bool cmSystemTools::RunCommand(const char* command, output += buffer; fgets(buffer, BUFFER_SIZE, cpipe); } - fclose(cpipe); + pclose(cpipe); return true; #endif } |