mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
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:
committed by
Tim Edwards
co-authored by
Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent
cf90d50999
commit
fdc81f5eec
+4
-3
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user