]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: downloaded a fresh clone from my fork, and took away the build-errors.
authoriceman1001 <iceman@iuse.se>
Mon, 5 Jan 2015 14:12:48 +0000 (15:12 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 5 Jan 2015 14:12:48 +0000 (15:12 +0100)
client/cmdhfepa.c
client/cmdlfawid26.c

index ecdb311c016c539381d30bfceedcae3c060b5f6b..afcdb0fa040ae9b822376415c2167a0a07326eac 100644 (file)
@@ -54,7 +54,7 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
                        size_t nonce_length = resp.arg[1];
                        char *nonce = (char *) malloc(2 * nonce_length + 1);
                        for(int j = 0; j < nonce_length; j++) {
-                               snprintf(nonce + (2 * j), "%02X", resp.d.asBytes[j]);
+                               sprintf(nonce + (2 * j), "%02X", resp.d.asBytes[j]);
                        }
                        // print nonce
                        PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce);
index 71f227f24f4ac2ea768ae52375ac139052a564c6..48e599dbc10009536370cfadaaa8805c73b70871 100644 (file)
@@ -57,11 +57,12 @@ int CmdClone(const char *Cmd)
 // convert 96 bit AWID FSK data to 8 digit BCD UID
 bool awid26_hex_to_uid(unsigned char *response, char *awid26)
 {
-       uint8_t i, tmp[96], tmp1[7];
-    int site;
-    int id;
+       //uint8_t i, tmp[96], tmp1[7];
+       //uint8_t tmp[96] = {0x00};
+    //int site;
+    //int id;
        
-    if(!hextobinarray(tmp, awid26))
+    //if(!hextobinarray(tmp, awid26))
         return false;
 
     // // data is in blocks of 4 bits - every 4th bit is parity, except the first
Impressum, Datenschutz