From 20547d773b8e1c940fcfd34d35ea4f13edf1048e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 24 Mar 2020 13:27:33 +0100 Subject: [PATCH] cppchecker - buffer overflow --- armsrc/mifaredesfire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/mifaredesfire.c b/armsrc/mifaredesfire.c index 06a3f3f8c..5b8ed289e 100644 --- a/armsrc/mifaredesfire.c +++ b/armsrc/mifaredesfire.c @@ -134,7 +134,7 @@ void MifareDesfireGetInformation() { return; } // add uid. - memcpy(payload.uid, card.uid, sizeof(card.uid)); + memcpy(payload.uid, card.uid, sizeof(payload.uid)); LED_A_ON(); uint8_t cmd[] = {GET_VERSION, 0x00, 0x00, 0x00};