Minor mistake in unpacking string

This commit is contained in:
Konrad Kuśnierz 2015-05-19 13:41:40 +02:00
父節點 48fefb03cb
當前提交 02ab50d8dd
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

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