1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

Fix a typo.

This commit is contained in:
d33tah
2013-09-04 15:40:47 +00:00
parent 143a8acc8a
commit fad24ba53e
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
--This function reads a line of at most 8096 bytes (or whatever the first --This function reads a line of at most 8096 bytes (or whatever the first
--parameter says) from standard input. Returns the string and a boolean value --parameter says) from standard input. Returns the string and a boolean value
--that is true if we hit the newline (defined as "\n") or false if the line had --that is true if we hit the newline (defined as "\n") or false if the line had
--to be truncated. This is here because io.stdin:read("*line") could read to --to be truncated. This is here because io.stdin:read("*line") could lead to
--memory exhaustion if we received gigabytes of characters with no newline. --memory exhaustion if we received gigabytes of characters with no newline.
function read_line(max_len) function read_line(max_len)
local ret = "" local ret = ""

View File

@@ -41,7 +41,7 @@ end
--Read a line of at most 8096 bytes (or whatever the first parameter says) --Read a line of at most 8096 bytes (or whatever the first parameter says)
--from standard input. Returns the string and a boolean value that is true if --from standard input. Returns the string and a boolean value that is true if
--we hit the newline (defined as "\n") or false if the line had to be --we hit the newline (defined as "\n") or false if the line had to be
--truncated. This is here because io.stdin:read("*line") could read to memory --truncated. This is here because io.stdin:read("*line") could lead to memory
--exhaustion if we received gigabytes of characters with no newline. --exhaustion if we received gigabytes of characters with no newline.
function read_line(max_len) function read_line(max_len)
local ret = "" local ret = ""