mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix coverity CID 349310
This commit is contained in:
parent
501a848034
commit
b5e7b6277f
1 changed files with 2 additions and 2 deletions
|
@ -549,9 +549,9 @@ static int ndefDecodeMime_bt(NDEFHeader_t *ndef) {
|
||||||
}
|
}
|
||||||
// Let's check payload[9]. If 0x08 then SHORT_NAME or if 0x09 then COMPLETE_NAME
|
// Let's check payload[9]. If 0x08 then SHORT_NAME or if 0x09 then COMPLETE_NAME
|
||||||
if (ndef->Payload[9] == 0x08 ) {
|
if (ndef->Payload[9] == 0x08 ) {
|
||||||
PrintAndLogEx(INFO, "Short name...... " _YELLOW_("%s"), ndef->Payload + 10, ndef->PayloadLen - 10);
|
PrintAndLogEx(INFO, "Short name...... " _YELLOW_("%.*s"), ndef->PayloadLen - 10, ndef->Payload + 10);
|
||||||
} else if (ndef->Payload[9] == 0x09 ) {
|
} else if (ndef->Payload[9] == 0x09 ) {
|
||||||
PrintAndLogEx(INFO, "Complete name... " _YELLOW_("%s"), ndef->Payload + 10, ndef->PayloadLen - 10);
|
PrintAndLogEx(INFO, "Complete name... " _YELLOW_("%.*s"), ndef->PayloadLen - 10, ndef->Payload + 10);
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(INFO, "[ %02x ]", ndef->Payload[9]);
|
PrintAndLogEx(INFO, "[ %02x ]", ndef->Payload[9]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue