mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
Fix empty key list bug.
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
c50e55a4a5
commit
ae86abb2fc
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)
|
||||||
--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