mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
minor parsing issue
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -44,7 +44,10 @@ static int openAIDFile(json_t **root, bool verbose) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
PrintAndLogEx(DEBUG, "Loaded file " _YELLOW_("%s") " " _GREEN_("%zu") " records ( " _GREEN_("ok") " )", path, json_array_size(*root));
|
||||
PrintAndLogEx(DEBUG, "Loaded file " _YELLOW_("%s") " " _GREEN_("%zu") " records ( " _GREEN_("ok") " )"
|
||||
, path
|
||||
, json_array_size(*root)
|
||||
);
|
||||
out:
|
||||
free(path);
|
||||
return retval;
|
||||
|
||||
@@ -468,7 +468,11 @@ static int CmdFlashMemInfo(const char *Cmd) {
|
||||
// shall_write = arg_get_lit(ctx, 5);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if (res || (dlen > 0 && dlen < sizeof(id))) {
|
||||
if (res) {
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
if (dlen > 0 && dlen < sizeof(id)) {
|
||||
PrintAndLogEx(FAILED, "Error parsing flash memory id, expect 8, got %d", dlen);
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user