From 793a5d62734ba2bee2fa72ad27d8ffc76d300a67 Mon Sep 17 00:00:00 2001 From: Walter Agazzi Date: Tue, 8 Aug 2023 00:38:53 +0200 Subject: [PATCH] AGS: Engine: fixed System.Log() may cause exceptions with wrong format From upstream ec9c494e391db23d587708cbe20cc6203b503396 --- 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 ddee4daff7a..36c3e8a6e84 100644 --- a/engines/ags/engine/ac/system.cpp +++ b/engines/ags/engine/ac/system.cpp @@ -351,7 +351,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, scsf_buffer); + Debug::Printf(kDbgGroup_Script, (MessageType)params[0].IValue, "%s", scsf_buffer); return RuntimeScriptValue((int32_t)0); }