From 7f5ce80932ad33b5a87dea6c52314fd6480db19f Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 29 May 2003 22:42:57 +0000 Subject: The playlist buffer was too small, causing all kinds of weird errors when playing large playlists git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3706 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/playlist.c') diff --git a/apps/playlist.c b/apps/playlist.c index b5db084f9b..726e8a9ecb 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -53,7 +53,7 @@ void playlist_init(void) { playlist.fd = -1; playlist.max_playlist_size = global_settings.max_files_in_playlist; - playlist.indices = buffer_alloc(playlist.max_playlist_size); + playlist.indices = buffer_alloc(playlist.max_playlist_size * sizeof(int)); playlist.buffer_size = AVERAGE_FILENAME_LENGTH * global_settings.max_files_in_dir; playlist_buffer = buffer_alloc(playlist.buffer_size); -- cgit v1.2.3