diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index ecdb311c0..afcdb0fa0 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 71f227f24..48e599dbc 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