Fix empty key list bug in mfkeys.lua (#579)

When input key list size is greater than 85, table.concat() returns empty because the last parameter is the end offset not the increment value.
This commit is contained in:
AnthraX1 2018-03-31 02:54:45 +11:00 committed by pwpiwi
commit 53c7a7053d

View file

@ -57,7 +57,7 @@ function checkBlock(blockNo, keys, keyType)
while remaining > 0 do
local n,data = remaining, nil
if remaining > 85 then n = 85 end
local data = table.concat(keys,"",start,n)
local data = table.concat(keys, "", start, start + n - 1)
--print("data",data)
--print("data len", #data)
print(("Testing block %d, keytype %d, with %d keys"):format(blockNo, keyType, n))