From 0ac3b269820c08623aac59f7016765837ff180f8 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 22 Jan 2013 00:54:47 +0100 Subject: [PATCH] nfc-relay-picc: Fix received bytes count --- utils/nfc-relay-picc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfc-relay-picc.c b/utils/nfc-relay-picc.c index b43f644..411f144 100644 --- a/utils/nfc-relay-picc.c +++ b/utils/nfc-relay-picc.c @@ -428,7 +428,7 @@ main(int argc, char *argv[]) if ((res = nfc_initiator_transceive_bytes(pndInitiator, abtCapdu, szCapduLen, abtRapdu, sizeof(abtRapdu), -1) < 0)) { ret = false; } else { - szCapduLen = (size_t) res; + szRapduLen = (size_t) res; ret = true; } } else {