diff options
| -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 b5db084..726e8a9 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); |