Merge pull request #1872 from zebbe-94/master

Fix typo in smart info
This commit is contained in:
Iceman 2023-01-22 16:48:24 +01:00 committed by GitHub
commit ed21af641a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -719,7 +719,7 @@ static int CmdSmartInfo(const char *Cmd) {
// print header // print header
PrintAndLogEx(INFO, "--- " _CYAN_("Smartcard Information") " ---------"); PrintAndLogEx(INFO, "--- " _CYAN_("Smartcard Information") " ---------");
PrintAndLogEx(INFO, "ISO7618-3 ATR... %s", sprint_hex(card.atr, card.atr_len)); PrintAndLogEx(INFO, "ISO7816-3 ATR... %s", sprint_hex(card.atr, card.atr_len));
// convert bytes to str. // convert bytes to str.
char *hexstr = calloc((card.atr_len << 1) + 1, sizeof(uint8_t)); char *hexstr = calloc((card.atr_len << 1) + 1, sizeof(uint8_t));
if (hexstr == NULL) { if (hexstr == NULL) {