From 8cdb9a316febc56007c35df49ffc80316bbf1dd9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 8 Oct 2002 10:53:32 -0400 Subject: [PATCH] BUG: get all the output including the last character --- Source/cmExecProgramCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx index 378fe27f8..6ff22e950 100644 --- a/Source/cmExecProgramCommand.cxx +++ b/Source/cmExecProgramCommand.cxx @@ -111,7 +111,7 @@ bool cmExecProgramCommand::InitialPass(std::vector 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()); }