From 7b763353f749fbb070faf636f4ead77c98004d58 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 7 Sep 2020 11:30:25 +0200 Subject: [PATCH] hf mf cview/csave: fix mfc 4k bug --- client/src/cmdhfmf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 4392c1cd8..342df0143 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -4334,7 +4334,7 @@ static int CmdHF14AMfCSave(const char *Cmd) { bool fillEmulator = false; bool errors = false, hasname = false, useuid = false; int i, len, flags; - uint8_t numblocks = 0, cmdp = 0; + uint16_t numblocks = 0, cmdp = 0; uint16_t bytes = 0; while (param_getchar(Cmd, cmdp) != 0x00 && !errors) { @@ -4464,7 +4464,7 @@ static int CmdHF14AMfCView(const char *Cmd) { int flags; char ctmp = '1'; uint8_t cmdp = 0; - uint8_t numblocks = NumOfBlocks(ctmp); + uint16_t numblocks = NumOfBlocks(ctmp); uint16_t bytes = numblocks * MFBLOCK_SIZE; while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {