coverity CID 322662

This commit is contained in:
iceman1001 2021-05-14 08:08:56 +02:00
commit 28032cd3be

View file

@ -433,6 +433,7 @@ static int ndef_print_CC(uint8_t *data) {
uint8_t cc_major = (data[1] & 0xC0) >> 6;
char wStr[50];
memset(wStr, 0, sizeof(wStr));
switch (cc_write) {
case 0:
sprintf(wStr, "Write access granted without any security");
@ -448,6 +449,7 @@ static int ndef_print_CC(uint8_t *data) {
break;
}
char rStr[46];
memset(rStr, 0, sizeof(rStr));
switch (cc_read) {
case 0:
sprintf(rStr, "Read access granted without any security");