From 1b6d7ab2109f256ce0e969eae583e25918c0e3ee Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 18 Feb 2010 18:32:53 +0000 Subject: [PATCH] Fix MIFARE UltraLight UID length. Okay, either I lost some code somewhere, or I am really mad _AND_ fu**ing good at writing C code 'cause I am pretty sure I already fixed that at the very beginning of the UltraLight tags support and only after wrote all these test I don't have to modify so they pass. --- libfreefare/mifare_ultralight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreefare/mifare_ultralight.c b/libfreefare/mifare_ultralight.c index 6ee9f7b..a93a7af 100644 --- a/libfreefare/mifare_ultralight.c +++ b/libfreefare/mifare_ultralight.c @@ -141,7 +141,7 @@ mifare_ultralight_connect (MifareUltralightTag tag) ASSERT_INACTIVE (tag); nfc_target_info_t pnti; - if (nfc_initiator_select_tag (tag->device, NM_ISO14443A_106, tag->info.abtUid, 7, &pnti)) { + if (nfc_initiator_select_tag (tag->device, NM_ISO14443A_106, tag->info.abtUid, 8, &pnti)) { tag->active = 1; } else { errno = EIO;