cppcheck fix
This commit is contained in:
1 parent
9a746db6f9
commit
4919d14c13
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user