]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfhitag.c
Fixed (?) http://www.proxmark.org/forum/viewtopic.php?id=1967, two bytes are discarde...
[proxmark3-svn] / client / cmdlfhitag.c
index ab279dcb32e30b94b75ea88f5708db46b1d317bf..af61bd36690e965a45388199bbddd24359ad3b64 100644 (file)
@@ -147,7 +147,10 @@ int CmdLFHitagSim(const char *Cmd) {
                        return 1;
                }
                tag_mem_supplied = true;
-               fread(c.d.asBytes,48,1,pf);
+               if (fread(c.d.asBytes,48,1,pf) == 0) {
+      PrintAndLog("Error: File reading error");
+                       return 1;
+    }
                fclose(pf);
        } else {
                tag_mem_supplied = false;
Impressum, Datenschutz