Merge pull request #26205 from jamessan/nlua_error-crash

fix(lua): crash in nlua_error
This commit is contained in:
James McCoy
2023-11-25 07:07:44 -05:00
committed by GitHub

View File

@@ -135,8 +135,8 @@ static void nlua_error(lua_State *const lstate, const char *const msg)
}
if (in_script) {
os_errmsg(str);
os_errmsg("\n");
fprintf(stderr, msg, (int)len, str);
fprintf(stderr, "\n");
} else {
msg_ext_set_kind("lua_error");
semsg_multiline(msg, (int)len, str);