diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 8a9f5926e..83e9916be 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -7353,7 +7353,7 @@ static int CmdHF14AMfView(const char *Cmd) { // read dump file uint8_t *dump = NULL; size_t bytes_read = 0; - int res = pm3_load_dump(filename, (void **)&dump, &bytes_read, (MFBLOCK_SIZE * MIFARE_4K_MAXBLOCK)); + int res = pm3_load_dump(filename, (void **)&dump, &bytes_read, MIFARE_4K_MAX_BYTES); if (res != PM3_SUCCESS) { return res; }