X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/dc2349ae7752f9da5337c515f9f5b71292f812e7..8ac5d5cba1dc632acca0d580cb5a2123a8e153b3:/tools/mfkey/mfkey64.c?ds=inline diff --git a/tools/mfkey/mfkey64.c b/tools/mfkey/mfkey64.c index 1b002812..c8837c7e 100755 --- a/tools/mfkey/mfkey64.c +++ b/tools/mfkey/mfkey64.c @@ -2,7 +2,7 @@ #include #include #include "crapto1/crapto1.h" -#include "util.h" +#include "util_posix.h" int main (int argc, char *argv[]) { @@ -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++) {