From: notaz Date: Sat, 5 Apr 2014 19:05:07 +0000 (+0300) Subject: fix a buffer overflow X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1453cf7e6d5d6758cc5d72c6d3af7d37156bf72;p=libpicofe.git fix a buffer overflow --- diff --git a/menu.c b/menu.c index 470ca3d..2447bce 100644 --- a/menu.c +++ b/menu.c @@ -252,7 +252,7 @@ void menu_init_base(void) return; // generate default 8x10 font from fontdata8x8 - for (c = 0, fd = menu_font_data; c < 256; c++) + for (c = 0, fd = menu_font_data; c < 128; c++) { for (l = 0; l < 8; l++) {