summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist_viewer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 20ac6c05a2..f469cc328e 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -299,8 +299,8 @@ static void load_playlist_entries_r(int end_index)
299 299
300 viewer.last_index = end_index; 300 viewer.last_index = end_index;
301 301
302 if (num_entries > MAX_PLAYLIST_ENTRIES) 302 if (num_entries >= MAX_PLAYLIST_ENTRIES)
303 num_entries = MAX_PLAYLIST_ENTRIES; 303 num_entries = MAX_PLAYLIST_ENTRIES-1;
304 304
305 for(i=num_entries; i>=0; i--, end_index--) 305 for(i=num_entries; i>=0; i--, end_index--)
306 { 306 {