1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Small fix: missed an 'end'

This commit is contained in:
gorjan
2011-07-13 09:34:19 +00:00
parent c08ca750fa
commit 70b09c9598

View File

@@ -206,7 +206,7 @@ end
-- @return A string.
function Packet:raw(index, length)
if not index then index = 0 end
if not length then length = #self.buf-index
if not length then length = #self.buf-index end
return string.char(string.byte(self.buf, index+1, index+1+length-1))
end