From e51844f83dd8f25269d6779e31e8b77b36b8b742 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 18 Jun 2001 17:26:30 -0400 Subject: [PATCH] BUG: use pclose not fclose --- Source/cmSystemTools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 3164d61c6..bbbd3a3c6 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 }