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>
This commit is contained in:
Darryl Miles 2024-09-30 05:46:10 +01:00 committed by Tim Edwards
parent cf90d50999
commit fdc81f5eec
1 changed files with 4 additions and 3 deletions

View File

@ -21,6 +21,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header$";
#endif /* not lint */
#include <stdio.h>
#include <stdint.h>
#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");