From b05f99322158676f4cc92df29127542c726098aa Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 15 Mar 2019 17:04:15 +0100 Subject: [PATCH] Fix wrong memset size in screen_filters --- sysmodules/rosalina/source/menus/screen_filters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysmodules/rosalina/source/menus/screen_filters.c b/sysmodules/rosalina/source/menus/screen_filters.c index 121d8e8..35cde72 100644 --- a/sysmodules/rosalina/source/menus/screen_filters.c +++ b/sysmodules/rosalina/source/menus/screen_filters.c @@ -61,8 +61,8 @@ void applyColorSettings(color_setting_t* cs) Pixel px[0x400]; u8 i = 0; - memset(c, 0, 0x600); - memset(px, 0, 0x400 * sizeof(Pixel)); + memset(c, 0, sizeof(c)); + memset(px, 0, sizeof(px)); do { *(u32*)&px[i] = i | (i << 8) | (i << 16);