working case-insense

This commit is contained in:
iceman1001
2020-06-09 17:52:32 +02:00
parent cb4369f3ec
commit a93e54374e

View File

@@ -105,10 +105,10 @@ static int mad_print(json_t **xroot, char *mad, bool verbose, char *out) {
elm = data;
break;
}
char low[strlen(fmad)];
strcpy(low, fmad);
str_lower(low);
if (strcmp(mad, low) == 0) {
char lmad[strlen(mad)];
strcpy(lmad, mad);
str_lower(lmad);
if (strcmp(lmad, fmad) == 0) {
elm = data;
break;
}