From 1072aa3097d9d6b7ed33bb0c8b5103cb69618e18 Mon Sep 17 00:00:00 2001 From: YoungJules Date: Tue, 19 May 2026 09:24:54 +0200 Subject: [PATCH] Apply same percent-s formatting to PrintAndLogEx calls for hdr1. Not strictly needed from a security standpoint but makes the code prettier and next developer will not be left left wondering why hdr0 is handled differently to hdr1 --- client/src/cmddata.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 6c5cf662f..86db74ea8 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -3057,9 +3057,9 @@ static int CmdDiff(const char *Cmd) { memset(hdr1 + strlen(hdr1), '-', hdr_sln); PrintAndLogEx(INFO, ""); - PrintAndLogEx(INFO, hdr1); + PrintAndLogEx(INFO, "%s", hdr1); PrintAndLogEx(INFO, "%s", hdr0); - PrintAndLogEx(INFO, hdr1); + PrintAndLogEx(INFO, "%s", hdr1); char line[880] = {0}; @@ -3131,7 +3131,7 @@ static int CmdDiff(const char *Cmd) { } // footer - PrintAndLogEx(INFO, hdr1); + PrintAndLogEx(INFO, "%s", hdr1); PrintAndLogEx(NORMAL, ""); free(inB);