]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - tools/mfkey/mfkey32.c
Fix format-truncation warning, missing string.h inclusion and strnlen warning (#723)
[proxmark3-svn] / tools / mfkey / mfkey32.c
index 4ab4bad4e10f65ffbaee1716e2f051ba9ac4e1f5..d84305d0da486ea0427749411fa8856c4ebf7552 100755 (executable)
@@ -4,12 +4,13 @@
 #include <stdlib.h>
 #include "crapto1/crapto1.h"
 #include "mfkey.h"
-#include "util.h"
+#include "util_posix.h"
+
 
 // 32 bit recover key from 2 nonces
 int main (int argc, char *argv[]) {
 
-  nonces_t data;
+  nonces_t data = {0};
   uint32_t ks2;     // keystream used to encrypt reader response
   uint64_t key;     // recovered key
 
Impressum, Datenschutz