diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2004-02-01 04:35:28 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2004-02-01 04:35:28 +0000 |
| commit | f4489561693708093c6145777e70db07a65ec0e0 (patch) | |
| tree | 53d80ed0af0a52618cc11d5e7c6ecf8a6a68dede | |
| parent | f05941964b7efdd14d577ae79ac3f3b78f717885 (diff) | |
| download | rockbox-f4489561693708093c6145777e70db07a65ec0e0.zip rockbox-f4489561693708093c6145777e70db07a65ec0e0.tar.gz rockbox-f4489561693708093c6145777e70db07a65ec0e0.tar.bz2 rockbox-f4489561693708093c6145777e70db07a65ec0e0.tar.xz | |
Fixed an array index out of bounds error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4291 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist_viewer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 20ac6c0..f469cc3 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -299,8 +299,8 @@ static void load_playlist_entries_r(int end_index) viewer.last_index = end_index; - if (num_entries > MAX_PLAYLIST_ENTRIES) - num_entries = MAX_PLAYLIST_ENTRIES; + if (num_entries >= MAX_PLAYLIST_ENTRIES) + num_entries = MAX_PLAYLIST_ENTRIES-1; for(i=num_entries; i>=0; i--, end_index--) { |