1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Lua 5.2 fixed from Daniel Miller.

http://seclists.org/nmap-dev/2012/q2/525
This commit is contained in:
david
2012-05-29 20:11:39 +00:00
parent a04314beaa
commit aa6717eb1f
18 changed files with 36 additions and 34 deletions

View File

@@ -33,7 +33,7 @@ categories = { "default", "discovery", "safe" }
--@param orig Start of the string
--@return The NUL-terminated string
local getstring = function(orig)
return orig:match("^([^%z]*)");
return orig:match("^([^\0]*)");
end
--- Converts two bytes into a number