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:
parent
86a6551f9b
commit
fe39d889f0
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue