mirror of https://github.com/snes9xgit/snes9x.git
Lua: fix emu.message() not to overwrite the display string by other Lua functions.
This commit is contained in:
parent
3f788a3d3e
commit
28fd42aa1b
|
@ -1065,7 +1065,7 @@ DEFINE_LUA_FUNCTION(emu_message, "str")
|
|||
|
||||
static char msg[1024];
|
||||
strncpy(msg, str, 1024);
|
||||
msg[1024] = '\0';
|
||||
msg[1023] = '\0';
|
||||
|
||||
S9xSetInfoString(msg);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue