1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

Reverted change tom match.numbytes

This commit is contained in:
patrik
2012-01-03 15:10:04 +00:00
parent 1b370e16a4
commit a1bdd51eaf
3 changed files with 2 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ end
-- @usage sock:receive_buf(match.numbytes(80))
-- @see nmap.receive_buf
numbytes = function(num)
local n = num + 1
local n = num
return function(buf)
if(#buf >=n) then
return n, n