cppchecker fix
This commit is contained in:
@@ -2066,7 +2066,7 @@ static int CmdHF14AMfURestore(const char *Cmd) {
|
||||
|
||||
bool has_key = false;
|
||||
if (ak_len > 0) {
|
||||
if (ak_len != 4 || ak_len != 16) {
|
||||
if (ak_len != 4 && ak_len != 16) {
|
||||
PrintAndLogEx(ERR, "Wrong key length. expected 4 or 16, got %d", ak_len);
|
||||
return PM3_EINVARG;
|
||||
} else {
|
||||
|
||||
@@ -1004,7 +1004,7 @@ static int CmdHF14AWSLoadBmp(const char *Cmd) {
|
||||
);
|
||||
|
||||
char modeldesc[40];
|
||||
snprintf(modeldesc, sizeof(modeldesc), "model number [0 - %u] of your tag", MEND - 1);
|
||||
snprintf(modeldesc, sizeof(modeldesc), "model number [0 - %d] of your tag", MEND - 1);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
|
||||
Reference in New Issue
Block a user