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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user