From: iceman1001 Date: Mon, 5 Jan 2015 14:12:48 +0000 (+0100) Subject: FIX: downloaded a fresh clone from my fork, and took away the build-errors. X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0452ec6c906c2389c761c1dd6b0a4b5f67defe32?ds=inline FIX: downloaded a fresh clone from my fork, and took away the build-errors. --- diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index ecdb311c..afcdb0fa 100644 --- a/client/cmdhfepa.c +++ b/client/cmdhfepa.c @@ -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); diff --git a/client/cmdlfawid26.c b/client/cmdlfawid26.c index 71f227f2..48e599db 100644 --- a/client/cmdlfawid26.c +++ b/client/cmdlfawid26.c @@ -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