From cbca45e21cdf041098a8193ff8667504f4f8bfae Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 14 Oct 2010 17:43:28 +0000 Subject: [PATCH] Oups it miss some space to handle HB. --- libnfc/chips/pn53x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index d47b5cf..a6d6217 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1271,7 +1271,7 @@ pn53x_TgInitAsTarget (nfc_device_t * pnd, nfc_target_mode_t ntm, { byte_t abtRx[MAX_FRAME_LEN]; size_t szRx; - byte_t abtCmd[sizeof (pncmd_target_init) + 48]; // 47 bytes max. for General Bytes and 1 for GB lenght + byte_t abtCmd[sizeof (pncmd_target_init) + 48 + 49]; // 47 bytes max. for General Bytes and 1 for GB lenght, 48 bytes max. for Historical Bytes and 1 for HB lenght size_t szOptionalBytes = 0; memcpy (abtCmd, pncmd_target_init, sizeof (pncmd_target_init));