diff --git a/test/DD_Client/CSlimFixtures/ScriptTestAmdaCommandLine.cpp b/test/DD_Client/CSlimFixtures/ScriptTestAmdaCommandLine.cpp index 23c08fc..de10e5c 100644 --- a/test/DD_Client/CSlimFixtures/ScriptTestAmdaCommandLine.cpp +++ b/test/DD_Client/CSlimFixtures/ScriptTestAmdaCommandLine.cpp @@ -330,9 +330,12 @@ static char *dodiffTimeTable(const char *tt1, const char *tt2) { return const_cast("0"); } else { std::string error = str.str(); - std::vector data(error.size() + 1); - std::copy(error.begin(), error.end(), data.begin()); - return &data[0]; + static char returnStr[1024]; + sprintf (returnStr, "%1023s", error.c_str()); + return const_cast(returnStr); + //std::vector data(error.size() + 1); + //std::copy(error.begin(), error.end(), data.begin()); + //return &data[0]; } } -- libgit2 0.21.2