From 0f3001a1d618f10ddd5bbffecf4410073213f385 Mon Sep 17 00:00:00 2001 From: Felix Arends Date: Wed, 1 May 2002 09:27:21 +0000 Subject: applied c standard to memory allocation so this will compile with win32 simulator as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@355 a1c6a512-1295-4272-9138-f99709370657 --- firmware/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/playlist.c b/firmware/playlist.c index 47764c12b6..904e5d4452 100644 --- a/firmware/playlist.c +++ b/firmware/playlist.c @@ -173,7 +173,7 @@ void randomise_playlist( playlist_info_t *playlist ) { int candidate; int adjusted_candidate; int found_next_number; - int index_list[ playlist->indices_count ]; + int *index_list = (int*) malloc(sizeof(int) * playlist->indices_count); int *randomised_list; int i; -- cgit v1.2.3