summaryrefslogtreecommitdiffstats
path: root/Source/cmExecProgramCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-10-08 14:53:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-10-08 14:53:32 (GMT)
commit8cdb9a316febc56007c35df49ffc80316bbf1dd9 (patch)
tree54aa23b828946322f23fc1eb6e8e882c4ca118ab /Source/cmExecProgramCommand.cxx
parent9b54cdb7e81cf8a2b7a55e9a9371c1a443ec281c (diff)
downloadCMake-8cdb9a316febc56007c35df49ffc80316bbf1dd9.zip
CMake-8cdb9a316febc56007c35df49ffc80316bbf1dd9.tar.gz
CMake-8cdb9a316febc56007c35df49ffc80316bbf1dd9.tar.bz2
BUG: get all the output including the last character
Diffstat (limited to 'Source/cmExecProgramCommand.cxx')
-rw-r--r--Source/cmExecProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx
index 378fe27..6ff22e9 100644
--- a/Source/cmExecProgramCommand.cxx
+++ b/Source/cmExecProgramCommand.cxx
@@ -111,7 +111,7 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& args)
{
std::string::size_type first = output.find_first_not_of(" \n\t\r");
std::string::size_type last = output.find_last_not_of(" \n\t\r");
- std::string coutput = std::string(output, first, last);
+ std::string coutput = std::string(output, first, last-first+1);
m_Makefile->AddDefinition(output_variable.c_str(), coutput.c_str());
}