mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
fix out-of-bounds array access
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_0@18502 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2c7d012bb4
commit
ef18bf1d24
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue