diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-09-12 19:25:55 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-09-12 19:25:55 +0000 |
commit | d02c85049a7903397fc70ad91fa6592ba7b5256c (patch) | |
tree | b11082d11ddf4666bf604cfc5f6bc854302d0d55 /apps/plugins | |
parent | 69ec3bfdbe6821dd39afa735dbe6e89a5e707360 (diff) |
fix out-of-bounds array access
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18503 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/calendar.c | 2 |
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; |