From 5243377d5797f3ef38d2e089831845c82fb66338 Mon Sep 17 00:00:00 2001 From: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com> Date: Sat, 20 Jan 2024 00:11:03 +0300 Subject: [PATCH] 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> --- client/src/cmddata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 9b25e7791..af13984ce 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -3742,8 +3742,8 @@ static int CmdCryptography(const char *Cmd) { des_encrypt_cbc(dato, dati, datilen, key, iv); char pad[250]; memset(pad, ' ', 4 + 8 + (datilen - 8) * 3); - pad[4 + 8 + (datilen - 8) * 3] = 0; // Make a padding to insert FMCOS macing algorithm guide - PrintAndLogEx(NONE, "%sVV VV VV VV FMCOS MAC", pad); + pad[8 + (datilen - 8) * 3] = 0; // Make a padding to insert FMCOS macing algorithm guide + PrintAndLogEx(INFO, "%sVV VV VV VV FMCOS MAC", pad); } } }