1
0
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:
batrick
2011-05-11 14:41:06 +00:00
parent 186cb2d6a3
commit dc909f7d77
5 changed files with 5 additions and 5 deletions

View File

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