From 4576bad36972b8f19e6e330355d95367a4e18400 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 19 Jan 2013 00:14:19 +0100 Subject: [PATCH] Fix ISO14443B' ATS broken by updated API --- libnfc/chips/pn53x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index bcb895e..18aec8c 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1082,6 +1082,7 @@ pn53x_initiator_select_passive_target_ext(struct nfc_device *pnd, if ((res = pn53x_initiator_transceive_bytes(pnd, pbtInitData, szInitData, abtTargetsData, sizeof(abtTargetsData), timeout)) < 0) { return res; } + szTargetsData = (size_t)res; if (nm.nmt == NMT_ISO14443B2CT) { if (szTargetsData != 2) return 0; // Target is not ISO14443B2CT