mzrouter/mzEstimate.c: (intmax_t) %lx Wrong type of arguments to formatting function

Copilot Autofix rejected: TxPrintf("\ntile %p\t\t  (x: %d to %d, y: %d to %d)\n",

CodeQL: https://github.com/dlmiles/magic/security/code-scanning/102
This commit is contained in:
Darryl L. Miles 2024-09-29 23:00:00 +01:00 committed by Tim Edwards
parent 7509802b3d
commit 62ebf49758
1 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
#endif /* not lint */
#include <stdio.h>
#include <stdint.h>
#include "utils/magic.h"
#include "utils/geometry.h"
@ -1998,8 +1999,8 @@ mzDumpEstFunc(tile, fd)
}
else
{
TxPrintf("\ntile %x\t\t (x: %d to %d, y: %d to %d)\n",
(pointertype) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
TxPrintf("\ntile %lx\t\t (x: %d to %d, y: %d to %d)\n",
(intmax_t) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
TxPrintf("\thcost = %d, ",
tilec->tc_hCost);
TxPrintf("vcost = %d \n",