X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/edf751bb62607c66684fd0750888d1fd6efd30e7..555fa197730c061bbf0ab01334e99bc47fb3dc06:/tools/mfkey/mfkey64.c?ds=sidebyside diff --git a/tools/mfkey/mfkey64.c b/tools/mfkey/mfkey64.c index 4e9876c5..c8837c7e 100755 --- a/tools/mfkey/mfkey64.c +++ b/tools/mfkey/mfkey64.c @@ -1,8 +1,8 @@ #include -#include +#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++) {