mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: 'sc upgrade' - ignore case on all platforms
This commit is contained in:
parent
ed565d04f5
commit
a823c7821f
1 changed files with 1 additions and 6 deletions
|
@ -548,7 +548,6 @@ static int CmdSmartUpgrade(const char *Cmd) {
|
||||||
//Validations
|
//Validations
|
||||||
if (errors || cmdp == 0) return usage_sm_upgrade();
|
if (errors || cmdp == 0) return usage_sm_upgrade();
|
||||||
|
|
||||||
|
|
||||||
char sha512filename[FILE_PATH_SIZE] = {'\0'};
|
char sha512filename[FILE_PATH_SIZE] = {'\0'};
|
||||||
char *bin_extension = filename;
|
char *bin_extension = filename;
|
||||||
char *dot_position = NULL;
|
char *dot_position = NULL;
|
||||||
|
@ -556,11 +555,7 @@ static int CmdSmartUpgrade(const char *Cmd) {
|
||||||
bin_extension = dot_position + 1;
|
bin_extension = dot_position + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(bin_extension, "BIN")
|
if (!strcmp(bin_extension, "BIN") || !strcmp(bin_extension, "bin")) {
|
||||||
#ifdef _WIN32
|
|
||||||
|| !strcmp(bin_extension, "bin")
|
|
||||||
#endif
|
|
||||||
) {
|
|
||||||
memcpy(sha512filename, filename, strlen(filename) - strlen("bin"));
|
memcpy(sha512filename, filename, strlen(filename) - strlen("bin"));
|
||||||
strcat(sha512filename, "sha512.txt");
|
strcat(sha512filename, "sha512.txt");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue