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-09-30 07:31:06 +01:00 committed by Tim Edwards
parent 86a6551f9b
commit fe39d889f0
1 changed files with 1 additions and 1 deletions

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",