From 40f96faff81579560834e8fa6956d05462abd144 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 07:15:06 +0100 Subject: [PATCH] plot/plotPNM.c: Multiplication result converted to larger type Fix code scanning alert no. 55: Multiplication result converted to larger type (#47) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- plot/plotPNM.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot/plotPNM.c b/plot/plotPNM.c index 4e2a29a4..6d6cdf59 100644 --- a/plot/plotPNM.c +++ b/plot/plotPNM.c @@ -877,7 +877,7 @@ PlotPNM(fileName, scx, layers, xMask, width) /* Clear tile memory with the background gray level */ memset((void *)rtile, PlotPNMBG, - (size_t)(ds_xsize * ds_ysize * PIXELSZ)); + (size_t)ds_xsize * ds_ysize * PIXELSZ); if (SigInterruptPending) {