mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
mzrouter/mzDebug.c: (intmax_t) %lx Wrong type of arguments to formatting function
Copilot Autofix rejected: TxPrintf("tile %p (x: %d to %d, y: %d to %d)\n"
CodeQL: https://github.com/dlmiles/magic/security/code-scanning/101
This commit is contained in:
committed by
Tim Edwards
parent
2c8c60510b
commit
7509802b3d
+3
-2
@@ -22,6 +22,7 @@ static char rcsid[] __attribute__ ((unused)) = "$$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "utils/magic.h"
|
||||
#include "utils/signals.h"
|
||||
@@ -540,8 +541,8 @@ mzDumpTagsFunc(tile, cxp)
|
||||
TITORECT(tile, &r);
|
||||
|
||||
/* print tile bounds */
|
||||
TxPrintf("tile %x (x: %d to %d, y: %d to %d)\n",
|
||||
(pointertype) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
|
||||
TxPrintf("tile %lx (x: %d to %d, y: %d to %d)\n",
|
||||
(intmax_t) (pointertype) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
|
||||
|
||||
/* dump rects attached to client field */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user