resis/ResDebug.c: %.2f Wrong type of arguments to formatting function

Applied same fix as other patch for line below;

Copilot Autofix: did not infer the same fix for same vaiable from line next to it.

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

View File

@ -80,7 +80,7 @@ ResPrintResistorList(fp, list)
for (; list != NULL; list = list->rr_nextResistor)
{
if (fp == stdout)
TxPrintf("r (%d,%d) (%d,%d) r=%d\n",
TxPrintf("r (%d,%d) (%d,%d) r=%.2f\n",
list->rr_connection1->rn_loc.p_x,
list->rr_connection1->rn_loc.p_y,
list->rr_connection2->rn_loc.p_x,