1
0
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:
d33tah
2013-09-04 15:40:51 +00:00
parent fad24ba53e
commit ca3ceecbf3

View File

@@ -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