From c15660879605f066a753fba313c3a830889bb694 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 17 Dec 2022 17:49:56 +0100 Subject: [PATCH] AGS: Engine: fixed dangerous use of String::Wrapper in logging From upstream 588d91ab6a09877eab06bf66073239db0d28271b --- engines/ags/engine/ac/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/ags/engine/ac/system.cpp b/engines/ags/engine/ac/system.cpp index c16de469bab..409dd365125 100644 --- a/engines/ags/engine/ac/system.cpp +++ b/engines/ags/engine/ac/system.cpp @@ -342,7 +342,7 @@ RuntimeScriptValue Sc_System_SaveConfigToFile(const RuntimeScriptValue *params, RuntimeScriptValue Sc_System_Log(const RuntimeScriptValue *params, int32_t param_count) { API_SCALL_SCRIPT_SPRINTF_PURE(Sc_System_Log, 2); - Debug::Printf(kDbgGroup_Script, (MessageType)params[0].IValue, String::Wrapper(scsf_buffer)); + Debug::Printf(kDbgGroup_Script, (MessageType)params[0].IValue, scsf_buffer); return RuntimeScriptValue((int32_t)0); }