13
0

Fix possible out-of-bounds array access (#4796).

git-svn-id: svn://localhost/ardour2/branches/3.0@11774 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-01 15:06:15 +00:00
parent d7deaa21bb
commit c38cbac7e7

View File

@ -1034,7 +1034,7 @@ clearlooks_draw_menubar (cairo_t *cr,
const MenuBarParameters *menubar,
int x, int y, int width, int height)
{
if (menubar->style < 0 || menubar->style > 3)
if (menubar->style < 0 || menubar->style >= 3)
return;
clearlooks_menubar_draw[menubar->style](cr, colors, params, menubar,