mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
AGS: Engine: fixed dangerous use of String::Wrapper in logging
From upstream 588d91ab6a09877eab06bf66073239db0d28271b
This commit is contained in:
parent
5772893340
commit
c156608796
@ -342,7 +342,7 @@ RuntimeScriptValue Sc_System_SaveConfigToFile(const RuntimeScriptValue *params,
|
|||||||
|
|
||||||
RuntimeScriptValue Sc_System_Log(const RuntimeScriptValue *params, int32_t param_count) {
|
RuntimeScriptValue Sc_System_Log(const RuntimeScriptValue *params, int32_t param_count) {
|
||||||
API_SCALL_SCRIPT_SPRINTF_PURE(Sc_System_Log, 2);
|
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);
|
return RuntimeScriptValue((int32_t)0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user