MacOS compilation fix

So for macOS, "NONE" isn't an option for PrintAndLogEx.
Info it is I guess. Padding fix applied by removing the 4 chars extra.

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
This commit is contained in:
team-orangeBlue 2024-01-20 00:11:03 +03:00 committed by GitHub
commit 5243377d57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3742,8 +3742,8 @@ static int CmdCryptography(const char *Cmd) {
des_encrypt_cbc(dato, dati, datilen, key, iv); des_encrypt_cbc(dato, dati, datilen, key, iv);
char pad[250]; char pad[250];
memset(pad, ' ', 4 + 8 + (datilen - 8) * 3); memset(pad, ' ', 4 + 8 + (datilen - 8) * 3);
pad[4 + 8 + (datilen - 8) * 3] = 0; // Make a padding to insert FMCOS macing algorithm guide pad[8 + (datilen - 8) * 3] = 0; // Make a padding to insert FMCOS macing algorithm guide
PrintAndLogEx(NONE, "%sVV VV VV VV FMCOS MAC", pad); PrintAndLogEx(INFO, "%sVV VV VV VV FMCOS MAC", pad);
} }
} }
} }