mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix echo.lua bug related to how io.stdin:read(n) works.
This commit is contained in:
parent
fad24ba53e
commit
ca3ceecbf3
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
while true do
|
||||
|
||||
data = io.stdin:read(512)
|
||||
--We're reading in 1-byte chunks because calls like io.stdin:read(512) would
|
||||
--wait for full 512 bytes of data before continuing.
|
||||
data = io.stdin:read(1)
|
||||
|
||||
if data == nil then
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue