From 2a8386106b48e94051fe26659b95876cb442e71d Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 19 Dec 2003 10:47:12 +0000 Subject: Silly me, I passed the wrong number of items to menu_init(). Thanks to Mike Grupenhoff for pointing that out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4167 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/main_menu.c b/apps/main_menu.c index c1faf815fe..b4d676332b 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -326,7 +326,7 @@ bool main_menu(void) items[i++].function = simulate_usb; #endif - m=menu_init( items, sizeof items / sizeof(struct menu_items) ); + m=menu_init( items, i ); #ifdef HAVE_LCD_CHARCELLS status_set_param(true); #endif -- cgit v1.2.3