From a93e54374e5902629cf206e6004eaa0046d92889 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 9 Jun 2020 17:52:32 +0200 Subject: [PATCH] working case-insense --- client/src/mifare/mad.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/mifare/mad.c b/client/src/mifare/mad.c index 5f50b3a4e..d0838877a 100644 --- a/client/src/mifare/mad.c +++ b/client/src/mifare/mad.c @@ -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; }