commit 76fcaab6de1fe7f7b2ea027709a39e71189d26b9
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed May 1 21:38:32 2019 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed May 1 21:38:32 2019 +0200
Fix type-dependent size parameter for a memset() call
---
src/i_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i_video.c b/src/i_video.c
index 9070896d..c3b2e5f8 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1421,7 +1421,7 @@ void I_InitGraphics(void)
// 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