Fix buffer corruption.

This commit is contained in:
Jeff Hutchinson 2021-09-07 21:52:36 -04:00
parent 6d93e96dc3
commit 27a4868b6e
4 changed files with 14 additions and 7 deletions

View file

@ -2286,7 +2286,8 @@ DefineEngineStringlyVariadicFunction( call, const char *, 2, 0, "( string functi
"@endtsexample\n\n"
"@ingroup Scripting" )
{
return Con::execute( argc - 1, argv + 1 );
ConsoleValue returnValue = Con::execute(argc - 1, argv + 1);
return Con::getReturnBuffer(returnValue.getString());
}
//-----------------------------------------------------------------------------