From: notaz Date: Sat, 8 Feb 2020 19:29:08 +0000 (+0200) Subject: menu: fix a buffer overflow X-Git-Tag: r23~152 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd764cbf89da8ef2ec28ec195764d75df7405b1a;p=pcsx_rearmed.git menu: fix a buffer overflow Reported by @wwhheerree, closes #152. --- 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: