From fdc81f5eec17ca8b5085068daf0d14608d6c6615 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 05:46:10 +0100 Subject: [PATCH] windows/windDebug.c: Wrong type of arguments to formatting function Fix code scanning alert no. 129: Wrong type of arguments to formatting function (#24) * Update windDebug.c * AI wanted "%p", DLM changed to (intmax_t) "%lx" --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- windows/windDebug.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/windows/windDebug.c b/windows/windDebug.c index a4cd11a8..d6c1844a 100644 --- a/windows/windDebug.c +++ b/windows/windDebug.c @@ -21,6 +21,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header$"; #endif /* not lint */ #include +#include #include "utils/magic.h" #include "utils/geometry.h" @@ -106,9 +107,9 @@ windDump() for (rc = windFirstClientRec; rc != (clientRec * ) NULL; rc = rc->w_nextClient) { - TxPrintf("'%10s' %x %x %x %x\n", rc->w_clientName, - rc->w_create, rc->w_delete, - rc->w_redisplay, rc->w_command); + TxPrintf("'%10s' %lx %lx %lx %lx\n", rc->w_clientName, + (intmax_t) rc->w_create, (intmax_t) rc->w_delete, + (intmax_t) rc->w_redisplay, (intmax_t) rc->w_command); } TxPrintf("\n");