From b893b3b33991c763a0b76f5ff0d6b6c72cb42fb2 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 16 Nov 2023 10:57:37 +0000 Subject: [PATCH] Fix bug in script used to compare two TT --- test/DD_Client/CSlimFixtures/ScriptTestAmdaCommandLine.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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