From 1214f31d2c9b08f015865daa146e824777b1f649 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 30 Mar 2010 15:17:18 +0000 Subject: [PATCH] Fix CT (Cascade Tag) byte when using 10 bytes long UID. --- src/lib/nfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/nfc.c b/src/lib/nfc.c index f3f37c5..415fe37 100644 --- a/src/lib/nfc.c +++ b/src/lib/nfc.c @@ -432,7 +432,7 @@ bool nfc_initiator_select_tag(const nfc_device_t* pnd, const nfc_modulation_t nm abtInit[0] = 0x88; memcpy(abtInit+1,pbtInitData,3); abtInit[4] = 0x88; - memcpy(abtInit+4,pbtInitData+3,7); + memcpy(abtInit+5,pbtInitData+3,7); szInitLen = 12; break;