Fixed a CodeQL complaint

This commit is contained in:
Mike Dussault 2021-10-11 23:57:20 +00:00
parent 2cf16eb495
commit 814124251e
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ std::shared_ptr<Image> GenerateRandomImage(
ZM_SUBPIX_ORDER_NONE);
// Set it to black initially.
memset((void*)image->Buffer(0, 0), 0, image->LineSize() * image->Height());
memset((void*)image->Buffer(0, 0), 0, (size_t)image->LineSize() * (size_t)image->Height());
// Now randomize the pixels inside a box.
const int boxWidth = (width * changeBoxPercent) / 100;