mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
coverty fixes.. those are not pointers to pointer..
This commit is contained in:
parent
8550689c37
commit
aa7a0b7edd
1 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ static int emv_parse_card_details(uint8_t *response, size_t reslen) {
|
||||||
if (prefname_full != NULL) {
|
if (prefname_full != NULL) {
|
||||||
const struct tlv *prefname_tlv = tlvdb_get_tlv(prefname_full);
|
const struct tlv *prefname_tlv = tlvdb_get_tlv(prefname_full);
|
||||||
if (prefname_tlv->len) {
|
if (prefname_tlv->len) {
|
||||||
char *name[64] = {0};
|
char name[64] = {0};
|
||||||
size_t n = MIN(sizeof(name), prefname_tlv->len);
|
size_t n = MIN(sizeof(name), prefname_tlv->len);
|
||||||
memcpy(name, prefname_tlv->value, n);
|
memcpy(name, prefname_tlv->value, n);
|
||||||
PrintAndLogEx(INFO, "Application.......... " _YELLOW_("%s"), name);
|
PrintAndLogEx(INFO, "Application.......... " _YELLOW_("%s"), name);
|
||||||
|
@ -99,7 +99,7 @@ static int emv_parse_card_details(uint8_t *response, size_t reslen) {
|
||||||
if (alabel != NULL) {
|
if (alabel != NULL) {
|
||||||
const struct tlv *alabel_tlv = tlvdb_get_tlv(alabel);
|
const struct tlv *alabel_tlv = tlvdb_get_tlv(alabel);
|
||||||
if (alabel_tlv->len) {
|
if (alabel_tlv->len) {
|
||||||
char *name[64] = {0};
|
char name[64] = {0};
|
||||||
size_t n = MIN(sizeof(name), alabel_tlv->len);
|
size_t n = MIN(sizeof(name), alabel_tlv->len);
|
||||||
memcpy(name, alabel_tlv->value, n);
|
memcpy(name, alabel_tlv->value, n);
|
||||||
PrintAndLogEx(INFO, "Label................ " _YELLOW_("%s"), name);
|
PrintAndLogEx(INFO, "Label................ " _YELLOW_("%s"), name);
|
||||||
|
@ -111,7 +111,7 @@ static int emv_parse_card_details(uint8_t *response, size_t reslen) {
|
||||||
if (lang_full != NULL) {
|
if (lang_full != NULL) {
|
||||||
const struct tlv *lang_tlv = tlvdb_get_tlv(lang_full);
|
const struct tlv *lang_tlv = tlvdb_get_tlv(lang_full);
|
||||||
if (lang_tlv->len) {
|
if (lang_tlv->len) {
|
||||||
char *lang[16] = {0};
|
char lang[16] = {0};
|
||||||
size_t n = MIN(sizeof(lang), lang_tlv->len);
|
size_t n = MIN(sizeof(lang), lang_tlv->len);
|
||||||
memcpy(lang, lang_tlv->value, n);
|
memcpy(lang, lang_tlv->value, n);
|
||||||
PrintAndLogEx(INFO, "Language............. " _YELLOW_("%s"), lang);
|
PrintAndLogEx(INFO, "Language............. " _YELLOW_("%s"), lang);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue