1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Apply patch from Kali package reputed to address #237

This commit is contained in:
dmiller
2016-03-09 14:52:00 +00:00
parent 3c566485e3
commit 9bcc6c09e2

4
lpeg.c
View File

@@ -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);