]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.c
Fix some printf/scanf format strings
[proxmark3-svn] / client / util.c
index 4e93b8f55940b5de8a7e309616f6d1b5b4166357..2058044802f6e19e50086bec871db7b56513c0e0 100644 (file)
@@ -11,6 +11,7 @@
 #include "util.h"
 
 #include <stdint.h>
+#include <inttypes.h>
 #include <string.h>
 #include <ctype.h>
 #include <stdlib.h>
@@ -572,7 +573,7 @@ int param_gethex_to_eol(const char *line, int paramnum, uint8_t * data, int maxd
                }
 
                if (strlen(buf) >= 2) {
-                       sscanf(buf, "%x", &temp);
+                       sscanf(buf, "%" SCNx32, &temp);
                        data[*datalen] = (uint8_t)(temp & 0xff);
                        *buf = 0;
                        (*datalen)++;
Impressum, Datenschutz