From 02ab50d8dd162f7ecc90effe15fe4adbc1f4e8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Ku=C5=9Bnierz?= Date: Tue, 19 May 2015 13:41:40 +0200 Subject: [PATCH] Minor mistake in unpacking string --- modules/corelib/struct.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/corelib/struct.lua b/modules/corelib/struct.lua index 44fcf56b..32993151 100644 --- a/modules/corelib/struct.lua +++ b/modules/corelib/struct.lua @@ -138,7 +138,7 @@ function Struct.unpack(format, stream) end elseif opt == 's' then local bytes = {} - for j = 1 + iterator, string.len(stream) do + for j = iterator, string.len(stream) do if string.sub(stream, j, j) == string.char(0) then break end