From d02c85049a7903397fc70ad91fa6592ba7b5256c Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 12 Sep 2008 19:25:55 +0000 Subject: fix out-of-bounds array access git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18503 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/calendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c index 05bca7c8cd..82125bb921 100644 --- a/apps/plugins/calendar.c +++ b/apps/plugins/calendar.c @@ -111,7 +111,7 @@ static void draw_headers(void) char *Dayname[7] = {"M","T","W","T","F","S","S"}; int ws = 2; rb->lcd_getstringsize("A",&w,&h); - for (i = 0; i < 8;) + for (i = 0; i < 7;) { rb->lcd_putsxy(ws, 0 , Dayname[i++]); ws += space; -- cgit v1.2.3