1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 20:09:02 +00:00

Replace some string.char and bin.pack calls with literals

This commit is contained in:
dmiller
2015-02-27 19:42:56 +00:00
parent 204d37e4d7
commit 0e74dd7a35
37 changed files with 85 additions and 97 deletions

View File

@@ -1216,7 +1216,7 @@ Marshaller = {
else
-- Otherwise, it's a bit more involved:
-- First, write the multiple-chunk indicator
result = result .. bin.pack( "C", 0xFE )
result = result .. "\xFE"
-- Loop through the string, chunk by chunk
while ( #value > 0 ) do
@@ -1235,7 +1235,7 @@ Marshaller = {
end
-- put a null byte at the end
result = result .. bin.pack( "C", 0 )
result = result .. '\0'
end
end