]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhficlass.c
REM: Removed #define llx PRIx64, all these defines are located in proxmark3.h
[proxmark3-svn] / client / cmdhficlass.c
index 047bf1375b46df624e96a6fb4d752095b144d9d4..03e99899e0502e623608e535abe8c0cb9bb9fde9 100644 (file)
@@ -34,8 +34,6 @@
 #include "cmdhfmfu.h"
 #include "cmdhf.h"
 
-#define llX PRIx64
-
 static int CmdHelp(const char *Cmd);
 
 #define ICLASS_KEYS_MAX 8
@@ -943,7 +941,7 @@ int usage_hf_iclass_clone(void) {
 }
 
 int CmdHFiClassCloneTag(const char *Cmd) {
-       char filename[FILE_PATH_SIZE];
+       char filename[FILE_PATH_SIZE] = { 0x00 };
        char tempStr[50]={0};
        uint8_t KEY[8]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
        uint8_t keyNbr = 0;
@@ -1048,6 +1046,7 @@ int CmdHFiClassCloneTag(const char *Cmd) {
 
        if (startblock<5) {
                PrintAndLog("You cannot write key blocks this way. yet... make your start block > 4");
+               fclose(f);      
                return 0;
        }
        // now read data from the file from block 6 --- 19
Impressum, Datenschutz