From: pwpiwi Date: Tue, 5 Aug 2014 16:40:19 +0000 (+0200) Subject: bugfix hf mf sim X-Git-Tag: v2.0.0-rc1~95 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/bfb6a143ea755e3380771f0cd201ae3df321df83 bugfix hf mf sim - an additional erronous byte was sent after SAK --- diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index bb73d5b7..9a80a177 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2279,7 +2279,7 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t * // select card if (len == 9 && (receivedCmd[0] == 0x93 && receivedCmd[1] == 0x70 && memcmp(&receivedCmd[2], rUIDBCC1, 4) == 0)) { - EmSendCmd(_7BUID?rSAK1:rSAK, sizeof(_7BUID?rSAK1:rSAK)); + EmSendCmd(_7BUID?rSAK1:rSAK, _7BUID?sizeof(rSAK1):sizeof(rSAK)); cuid = bytes_to_num(rUIDBCC1, 4); if (!_7BUID) { cardSTATE = MFEMUL_WORK;