summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-09-12 19:25:55 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-09-12 19:25:55 +0000
commitd02c85049a7903397fc70ad91fa6592ba7b5256c (patch)
treeb11082d11ddf4666bf604cfc5f6bc854302d0d55
parent69ec3bfdbe6821dd39afa735dbe6e89a5e707360 (diff)
downloadrockbox-d02c85049a7903397fc70ad91fa6592ba7b5256c.tar.gz
rockbox-d02c85049a7903397fc70ad91fa6592ba7b5256c.zip
fix out-of-bounds array access
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18503 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/calendar.c2
1 files changed, 1 insertions, 1 deletions
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;