summaryrefslogtreecommitdiff
path: root/archivers/rpm4/files/patch-luaext_lrexlib.c
diff options
context:
space:
mode:
authorRodrigo Osorio <rodrigo@FreeBSD.org>2019-10-03 16:55:19 +0000
committerRodrigo Osorio <rodrigo@FreeBSD.org>2019-10-03 16:55:19 +0000
commit48fe712ddb08d95f85d453f867174ec88bb346d3 (patch)
tree979445568df897894840fb5d68645926046cddc1 /archivers/rpm4/files/patch-luaext_lrexlib.c
parentUpdate to 2.2.1 (diff)
Upgrade archivers/rpm4 from 4.14.2.1 to 4.15.0
Relnotes: https://rpm.org/wiki/Releases/4.15.0 PR: 240922 Submitted by: pi
Notes
Notes: svn path=/head/; revision=513675
Diffstat (limited to 'archivers/rpm4/files/patch-luaext_lrexlib.c')
-rw-r--r--archivers/rpm4/files/patch-luaext_lrexlib.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/archivers/rpm4/files/patch-luaext_lrexlib.c b/archivers/rpm4/files/patch-luaext_lrexlib.c
new file mode 100644
index 000000000000..0ba89537cc45
--- /dev/null
+++ b/archivers/rpm4/files/patch-luaext_lrexlib.c
@@ -0,0 +1,19 @@
+--- luaext/lrexlib.c.orig 2019-06-26 14:17:31 UTC
++++ luaext/lrexlib.c
+@@ -11,7 +11,6 @@
+ #include "lauxlib.h"
+ #include "lrexlib.h"
+
+-
+ /* Sanity check */
+ #if !defined(WITH_POSIX) && !defined(WITH_PCRE)
+ #error Define WITH_POSIX or WITH_PCRE, otherwise this library is useless!
+@@ -32,7 +31,7 @@ static int rex_comp(lua_State *L)
+ regex_t *pr = (regex_t *)lua_newuserdata(L, sizeof(regex_t));
+ pattern = luaL_checklstring(L, 1, &l);
+ #ifdef REG_BASIC
+- pr->re_endp = pattern + lua_strlen(L, 1);
++ pr->re_endp = pattern + lua_rawlen(L, (1));
+ res = regcomp(pr, pattern, REG_EXTENDED | REG_PEND);
+ #else
+ res = regcomp(pr, pattern, REG_EXTENDED);