From aa703a67b7ce2283e2a1fb71f345e06566c3cbcf Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sun, 29 Sep 2024 23:00:00 +0100 Subject: [PATCH] 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 --- resis/ResDebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resis/ResDebug.c b/resis/ResDebug.c index cd393f0a..be4775a9 100644 --- a/resis/ResDebug.c +++ b/resis/ResDebug.c @@ -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,