mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-22 13:10:43 +08:00
cleanup
This commit is contained in:
parent
01cf818e48
commit
f58c47a7b8
1 changed files with 1 additions and 5 deletions
|
@ -2239,11 +2239,7 @@ int CmdHF14AMfSniff(const char *Cmd){
|
||||||
bufsize = traceLen;
|
bufsize = traceLen;
|
||||||
memset(buf, 0x00, traceLen);
|
memset(buf, 0x00, traceLen);
|
||||||
}
|
}
|
||||||
if (bufPtr == NULL) {
|
|
||||||
PrintAndLogEx(FAILED, "Cannot allocate memory for trace");
|
|
||||||
free(buf);
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
// what happens if LEN is bigger then TRACELEN --iceman
|
// what happens if LEN is bigger then TRACELEN --iceman
|
||||||
memcpy(bufPtr, resp.d.asBytes, len);
|
memcpy(bufPtr, resp.d.asBytes, len);
|
||||||
bufPtr += len;
|
bufPtr += len;
|
||||||
|
|
Loading…
Add table
Reference in a new issue