mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Fix echo.lua bug related to how io.stdin:read(n) works.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user