Skip to content

Commit

Permalink
backport fix for bugs 1914, 1915. (from 2.0 branch commit 030181ff9f59).
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 6, 2018
1 parent 5c25081 commit 1e8f0db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mixer.c
Expand Up @@ -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. */
}
Expand Down
2 changes: 1 addition & 1 deletion music.c
Expand Up @@ -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. */
}
Expand Down

0 comments on commit 1e8f0db

Please sign in to comment.