ref: 76fcaab6de1fe7f7b2ea027709a39e71189d26b9
parent: a96f19fbc83f1b3d00af5a4b02e39e2830810d24
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed May 1 17:38:32 EDT 2019
Fix type-dependent size parameter for a memset() call
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1421,7 +1421,7 @@
// Clear the screen to black.
- memset(I_VideoBuffer, 0, SCREENWIDTH * SCREENHEIGHT);
+ memset(I_VideoBuffer, 0, SCREENWIDTH * SCREENHEIGHT * sizeof(*I_VideoBuffer));
// clear out any events waiting at the start and center the mouse