b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/src/h_lua_common.c |
2 | +++ b/src/h_lua_common.c | ||||
3 | @@ -79,7 +79,7 @@ lua_common_setup (char *shell, list_t * | ||||
4 | |||||
5 | /* and load our haserl library */ | ||||
6 | if (luaL_loadbuffer | ||||
7 | - (lua_vm, (const char *) &haserl_lualib, sizeof (haserl_lualib), | ||||
8 | + (lua_vm, (const char *) haserl_lualib, sizeof(haserl_lualib)-1, | ||||
9 | "luascript.lua") || lua_pcall (lua_vm, 0, 0, 0)) | ||||
10 | { | ||||
11 | die_with_message (NULL, NULL, |