* Upgrade to 4.16.0 * add sqlite support * remove deprecate config options Major changes: * Database backends: * NDB backend promoted to stable * New sqlite-based backend * New experimental read-only BDB backend * BDB database backend deprecated * Powerful macro and %if expressions * Optional MIME type based file classification * Dependency generation by parametric macros * A new version parsing and comparison API in C and Python * Parallelise test-suite execution * Clarify RPM license PR: 250573 Submitted by: Brian Zou <zoujiaqing@gmail.com>
11 lines
448 B
C
11 lines
448 B
C
--- luaext/lrexlib.c.orig 2020-10-25 13:43:26 UTC
|
|
+++ luaext/lrexlib.c
|
|
@@ -32,7 +32,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);
|