mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 21:03:23 -07:00
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:
parent
3316fc1d11
commit
53c7a7053d
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ function checkBlock(blockNo, keys, keyType)
|
||||||
while remaining > 0 do
|
while remaining > 0 do
|
||||||
local n,data = remaining, nil
|
local n,data = remaining, nil
|
||||||
if remaining > 85 then n = 85 end
|
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",data)
|
||||||
--print("data len", #data)
|
--print("data len", #data)
|
||||||
print(("Testing block %d, keytype %d, with %d keys"):format(blockNo, keyType, n))
|
print(("Testing block %d, keytype %d, with %d keys"):format(blockNo, keyType, n))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue