]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
extracted download and signature verification functionality to a function in tools...
[proxmark3-svn] / client / cmdlf.c
index 80a9dc2685760033f57179e2e7fee21ce1bd842e..86bb35cea8038b08b90e5f031b1d3efa86349578 100644 (file)
@@ -1,10 +1,23 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// Low frequency commands
+//-----------------------------------------------------------------------------
+
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
+#include <limits.h>
 #include "proxusb.h"
 #include "data.h"
 #include "graph.h"
 #include "ui.h"
 #include "cmdparser.h"
+#include "cmdmain.h"
 #include "cmddata.h"
 #include "cmdlf.h"
 #include "cmdlfhid.h"
@@ -388,7 +401,7 @@ int CmdVchDemod(const char *Cmd)
   bits[256] = '\0';
 
   int worst = INT_MAX;
-  int worstPos;
+  int worstPos = 0;
 
   for (i = 0; i < 2048; i += 8) {
     int sum = 0;
Impressum, Datenschutz