X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ec9c71129f67c5b1c2429dbaefe23e0d19149780..8ac5d5cba1dc632acca0d580cb5a2123a8e153b3:/tools/mfkey/mfkey64.c?ds=sidebyside diff --git a/tools/mfkey/mfkey64.c b/tools/mfkey/mfkey64.c index 8bf1d801..c8837c7e 100755 --- a/tools/mfkey/mfkey64.c +++ b/tools/mfkey/mfkey64.c @@ -28,11 +28,11 @@ int main (int argc, char *argv[]) int enclen[encc]; uint8_t enc[encc][120]; - sscanf(argv[1], "%x", &uid); - sscanf(argv[2], "%x", &nt); - sscanf(argv[3], "%x", &nr_enc); - sscanf(argv[4], "%x", &ar_enc); - sscanf(argv[5], "%x", &at_enc); + sscanf(argv[1], "%" SCNx32, &uid); + sscanf(argv[2], "%" SCNx32, &nt); + sscanf(argv[3], "%" SCNx32, &nr_enc); + sscanf(argv[4], "%" SCNx32, &ar_enc); + sscanf(argv[5], "%" SCNx32, &at_enc); for (int i = 0; i < encc; i++) { enclen[i] = strlen(argv[i + 6]) / 2; for (int i2 = 0; i2 < enclen[i]; i2++) {