music.c
branchSDL-1.2
changeset 873 d159f97ef3e7
parent 871 284d10d87cc9
child 883 2ff5d3653db2
     1.1 --- a/music.c	Sun Oct 07 00:15:15 2018 +0300
     1.2 +++ b/music.c	Sun Oct 07 00:21:02 2018 +0300
     1.3 @@ -163,7 +163,7 @@
     1.4  
     1.5  static void add_music_decoder(const char *decoder)
     1.6  {
     1.7 -	void *ptr = SDL_realloc(music_decoders, (num_decoders + 1) * sizeof (const char **));
     1.8 +	void *ptr = SDL_realloc(music_decoders, (num_decoders + 1) * sizeof (const char *));
     1.9  	if (ptr == NULL) {
    1.10  		return;  /* oh well, go on without it. */
    1.11  	}