Lua: fix emu.message() not to overwrite the display string by other Lua functions.

This commit is contained in:
gocha 2012-08-15 11:22:01 +09:00
parent 3f788a3d3e
commit 28fd42aa1b
1 changed files with 1 additions and 1 deletions

View File

@ -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;