chg: calloc calls

This commit is contained in:
iceman1001 2019-01-21 09:02:00 +01:00
commit 66c82d16b0
3 changed files with 6 additions and 6 deletions

View file

@ -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;