mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-23 16:56:15 +08:00
mfc mad_print compare
This commit is contained in:
parent
a93e54374e
commit
242c276bfb
|
@ -105,10 +105,14 @@ static int mad_print(json_t **xroot, char *mad, bool verbose, char *out) {
|
||||||
elm = data;
|
elm = data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
char lmad[strlen(mad)];
|
|
||||||
|
char lfmad[strlen(fmad) + 1];
|
||||||
|
strcpy(lfmad, fmad);
|
||||||
|
str_lower(lfmad);
|
||||||
|
char lmad[strlen(mad) + 1];
|
||||||
strcpy(lmad, mad);
|
strcpy(lmad, mad);
|
||||||
str_lower(lmad);
|
str_lower(lmad);
|
||||||
if (strcmp(lmad, fmad) == 0) {
|
if (strcmp(lmad, lfmad) == 0) {
|
||||||
elm = data;
|
elm = data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue