mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
chg: calloc calls
This commit is contained in:
parent
5f2ecf67cd
commit
66c82d16b0
3 changed files with 6 additions and 6 deletions
|
@ -2496,7 +2496,7 @@ int CmdHF14AMfESave(const char *Cmd) {
|
|||
blocks = NumOfBlocks(c);
|
||||
bytes = blocks * MFBLOCK_SIZE;
|
||||
|
||||
dump = calloc(sizeof(uint8_t), bytes);
|
||||
dump = calloc(bytes, sizeof(uint8_t));
|
||||
if (!dump) {
|
||||
PrintAndLogEx(WARNING, "Fail, cannot allocate memory");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue