mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
cppcheck fix
This commit is contained in:
parent
9a746db6f9
commit
4919d14c13
1 changed files with 1 additions and 1 deletions
|
@ -1414,7 +1414,7 @@ int HIDFindCardFormat(const char *format) {
|
|||
bool HIDPack(int format_idx, wiegand_card_t *card, wiegand_message_t *packed, bool preamble) {
|
||||
memset(packed, 0, sizeof(wiegand_message_t));
|
||||
|
||||
if (format_idx < 0 || format_idx >= ARRAYLEN(FormatTable))
|
||||
if (format_idx < 0 || format_idx >= ARRAYLEN(FormatTable) - 1)
|
||||
return false;
|
||||
|
||||
return FormatTable[format_idx].Pack(card, packed, preamble);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue