Skip to content

Commit

Permalink
Add new Lua patch
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Sep 23, 2024
1 parent 835933f commit 59cfeb4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions patch/lua.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
set -e

patch -p1 < patch/lua/0001-add-pihole-library.patch
patch -p1 < patch/lua/0001-Increase-LUA_IDSIZE-so-that-long-script-filenames-as.patch

echo "ALL PATCHES APPLIED OKAY"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 835933f8501e517a781b380b8cfafa656adc6fa7 Mon Sep 17 00:00:00 2001
From: DL6ER <[email protected]>
Date: Mon, 23 Sep 2024 13:25:34 +0200
Subject: [PATCH] Increase LUA_IDSIZE so that long script filenames as well as
long script lines fit into the error logging buffer

Signed-off-by: DL6ER <[email protected]>
---
src/lua/luaconf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/luaconf.h b/src/lua/luaconf.h
index 33bb580d..dacc5221 100644
--- a/src/lua/luaconf.h
+++ b/src/lua/luaconf.h
@@ -765,7 +765,7 @@
** of a function in debug information.
** CHANGE it if you want a different size.
*/
-#define LUA_IDSIZE 60
+#define LUA_IDSIZE 256


/*
--
2.34.1

0 comments on commit 59cfeb4

Please sign in to comment.