cppchecker - buffer overflow

This commit is contained in:
iceman1001 2020-03-24 13:27:33 +01:00
parent a24c7334cf
commit 20547d773b

View file

@ -134,7 +134,7 @@ void MifareDesfireGetInformation() {
return; return;
} }
// add uid. // add uid.
memcpy(payload.uid, card.uid, sizeof(card.uid)); memcpy(payload.uid, card.uid, sizeof(payload.uid));
LED_A_ON(); LED_A_ON();
uint8_t cmd[] = {GET_VERSION, 0x00, 0x00, 0x00}; uint8_t cmd[] = {GET_VERSION, 0x00, 0x00, 0x00};