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:
parent
d1dc038cb7
commit
aa703a67b7
|
|
@ -80,7 +80,7 @@ ResPrintResistorList(fp, list)
|
||||||
for (; list != NULL; list = list->rr_nextResistor)
|
for (; list != NULL; list = list->rr_nextResistor)
|
||||||
{
|
{
|
||||||
if (fp == stdout)
|
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_x,
|
||||||
list->rr_connection1->rn_loc.p_y,
|
list->rr_connection1->rn_loc.p_y,
|
||||||
list->rr_connection2->rn_loc.p_x,
|
list->rr_connection2->rn_loc.p_x,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue