packages/utils/haserl/patches/101-adjust-script-size.patch
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

11 lines
413 B
Diff

--- a/src/h_lua_common.c
+++ b/src/h_lua_common.c
@@ -79,7 +79,7 @@ lua_common_setup (char *shell, list_t *
/* and load our haserl library */
if (luaL_loadbuffer
- (lua_vm, (const char *) &haserl_lualib, sizeof (haserl_lualib),
+ (lua_vm, (const char *) haserl_lualib, sizeof(haserl_lualib)-1,
"luascript.lua") || lua_pcall (lua_vm, 0, 0, 0))
{
die_with_message (NULL, NULL,