From fd764cbf89da8ef2ec28ec195764d75df7405b1a Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 8 Feb 2020 21:29:08 +0200 Subject: [PATCH] menu: fix a buffer overflow Reported by @wwhheerree, closes #152. --- frontend/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/menu.c b/frontend/menu.c index 0b3f553c..6d753735 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -815,7 +815,7 @@ static void draw_savestate_bg(int slot) // darken this so that menu text is visible if (g_menuscreen_w - w < 320) - menu_darken_bg(d, d, w * 2, 0); + menu_darken_bg(d, d, w, 0); } out: -- 2.39.5