diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index c6d4be8da..a29338d24 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1077,7 +1077,7 @@ void pm3_version(bool verbose, bool oneliner) { if (ptr != NULL) { ptr = strstr(ptr, "\n"); if ((ptr != NULL) && (strlen(g_version_information.armsrc) == 9)) { - if (strncmp(ptr-9, g_version_information.armsrc, 9) != 0) { + if (strncmp(ptr - 9, g_version_information.armsrc, 9) != 0) { armsrc_mismatch = true; } } diff --git a/client/src/flash.c b/client/src/flash.c index 78365c940..7da19840f 100644 --- a/client/src/flash.c +++ b/client/src/flash.c @@ -345,8 +345,8 @@ int flash_check(flash_file_t *ctx, const char *name) { goto fail; } - for(uint16_t i=0; iarmsrc, g_version_information.armsrc, 9) != 0) { - PrintAndLogEx(WARNING, _RED_("ARM firmware does not match the source at the time the client was compiled")); - PrintAndLogEx(WARNING, "Make sure to flash a correct and up-to-date version"); + PrintAndLogEx(WARNING, _RED_("ARM firmware does not match the source at the time the client was compiled")); + PrintAndLogEx(WARNING, "Make sure to flash a correct and up-to-date version"); // TODO: prompt user to continue or abort } }