diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
53 | { | 53 | { |
54 | playlist.fd = -1; | 54 | playlist.fd = -1; |
55 | playlist.max_playlist_size = global_settings.max_files_in_playlist; | 55 | playlist.max_playlist_size = global_settings.max_files_in_playlist; |
56 | playlist.indices = buffer_alloc(playlist.max_playlist_size); | 56 | playlist.indices = buffer_alloc(playlist.max_playlist_size * sizeof(int)); |
57 | playlist.buffer_size = | 57 | playlist.buffer_size = |
58 | AVERAGE_FILENAME_LENGTH * global_settings.max_files_in_dir; | 58 | AVERAGE_FILENAME_LENGTH * global_settings.max_files_in_dir; |
59 | playlist_buffer = buffer_alloc(playlist.buffer_size); | 59 | playlist_buffer = buffer_alloc(playlist.buffer_size); |