mirror of
https://github.com/nmap/nmap.git
synced 2026-02-03 12:06:35 +00:00
removed usage of deprecated table.getn
This commit is contained in:
@@ -227,7 +227,7 @@ function build_domain(host)
|
||||
abs_name = listop.reverse(abs_name)
|
||||
|
||||
-- prepend each element with its length
|
||||
while i <= table.getn(abs_name) do
|
||||
while i <= #abs_name do
|
||||
buf = buf .. string.char(string.len(abs_name[i])) .. abs_name[i]
|
||||
i = i + 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user