mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +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
|
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
|
if data == nil then
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user