mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 06:59:01 +00:00
Apply patch from Kali package reputed to address #237
This commit is contained in:
4
lpeg.c
4
lpeg.c
@@ -3340,8 +3340,8 @@ static struct luaL_Reg metareg[] = {
|
||||
};
|
||||
|
||||
|
||||
int luaopen_lpeg (lua_State *L);
|
||||
int luaopen_lpeg (lua_State *L) {
|
||||
LUALIB_API int luaopen_lpeg (lua_State *L);
|
||||
LUALIB_API int luaopen_lpeg (lua_State *L) {
|
||||
luaL_newmetatable(L, PATTERN_T);
|
||||
lua_pushnumber(L, MAXBACK); /* initialize maximum backtracking */
|
||||
lua_setfield(L, LUA_REGISTRYINDEX, MAXSTACKIDX);
|
||||
|
||||
Reference in New Issue
Block a user