From a823c7821fa3055f737e9141f7e2448bf6b7ee30 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 17 Oct 2019 22:30:18 +0200 Subject: [PATCH] chg: 'sc upgrade' - ignore case on all platforms --- client/cmdsmartcard.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/cmdsmartcard.c b/client/cmdsmartcard.c index c69e4f037..21066ffb7 100644 --- a/client/cmdsmartcard.c +++ b/client/cmdsmartcard.c @@ -548,7 +548,6 @@ static int CmdSmartUpgrade(const char *Cmd) { //Validations if (errors || cmdp == 0) return usage_sm_upgrade(); - char sha512filename[FILE_PATH_SIZE] = {'\0'}; char *bin_extension = filename; char *dot_position = NULL; @@ -556,11 +555,7 @@ static int CmdSmartUpgrade(const char *Cmd) { bin_extension = dot_position + 1; } - if (!strcmp(bin_extension, "BIN") -#ifdef _WIN32 - || !strcmp(bin_extension, "bin") -#endif - ) { + if (!strcmp(bin_extension, "BIN") || !strcmp(bin_extension, "bin")) { memcpy(sha512filename, filename, strlen(filename) - strlen("bin")); strcat(sha512filename, "sha512.txt"); } else {