mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 22:55:37 -07:00
fix coverity 290769, 290768
This commit is contained in:
parent
b5b5520546
commit
5d08dae554
1 changed files with 7 additions and 3 deletions
|
@ -121,9 +121,13 @@ static int print_aid_description(json_t *root, uint16_t aid, char *fmt, bool ver
|
||||||
const char *company = mad_json_get_str(elm, "company");
|
const char *company = mad_json_get_str(elm, "company");
|
||||||
const char *provider = mad_json_get_str(elm, "service_provider");
|
const char *provider = mad_json_get_str(elm, "service_provider");
|
||||||
const char *integrator = mad_json_get_str(elm, "system_integrator");
|
const char *integrator = mad_json_get_str(elm, "system_integrator");
|
||||||
|
|
||||||
|
if (application && company) {
|
||||||
char result[4 + strlen(application) + strlen(company)];
|
char result[4 + strlen(application) + strlen(company)];
|
||||||
sprintf(result, " %s [%s]", application, company);
|
sprintf(result, " %s [%s]", application, company);
|
||||||
PrintAndLogEx(INFO, fmt, result);
|
PrintAndLogEx(INFO, fmt, result);
|
||||||
|
}
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
PrintAndLogEx(SUCCESS, " MAD: %s", vmad);
|
PrintAndLogEx(SUCCESS, " MAD: %s", vmad);
|
||||||
if (application)
|
if (application)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue