From 1e8f0db7f260c73e281729c6b9872570a5251750 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 7 Oct 2018 00:21:02 +0300 Subject: [PATCH] backport fix for bugs 1914, 1915. (from 2.0 branch commit 030181ff9f59). --- mixer.c | 2 +- music.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mixer.c b/mixer.c index ecb5da91..8ac881ce 100644 --- a/mixer.c +++ b/mixer.c @@ -126,7 +126,7 @@ const char *Mix_GetChunkDecoder(int index) static void add_chunk_decoder(const char *decoder) { - void *ptr = SDL_realloc(chunk_decoders, (num_decoders + 1) * sizeof (const char **)); + void *ptr = SDL_realloc(chunk_decoders, (num_decoders + 1) * sizeof (const char *)); if (ptr == NULL) { return; /* oh well, go on without it. */ } diff --git a/music.c b/music.c index 90eba7aa..abefbc16 100644 --- a/music.c +++ b/music.c @@ -163,7 +163,7 @@ const char *Mix_GetMusicDecoder(int index) static void add_music_decoder(const char *decoder) { - void *ptr = SDL_realloc(music_decoders, (num_decoders + 1) * sizeof (const char **)); + void *ptr = SDL_realloc(music_decoders, (num_decoders + 1) * sizeof (const char *)); if (ptr == NULL) { return; /* oh well, go on without it. */ }