plot/plotRutils.c: Multiplication result converted to larger type

Fix code scanning alert no. 54: Multiplication result converted to larger type (#56)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Darryl Miles
2024-10-01 12:36:13 -04:00
committed by Tim Edwards
co-authored by Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent 86a6551f9b
commit fe39d889f0
+1 -1
View File
@@ -519,7 +519,7 @@ PlotDumpRaster(raster, file)
int count;
count = write(fileno(file), (char *) raster->ras_bits,
raster->ras_bytesPerLine*raster->ras_height);
(size_t)raster->ras_bytesPerLine * raster->ras_height);
if (count < 0)
{
TxError("I/O error in writing raster file: %s.\n",