Skip to content

Commit

Permalink
music.c: replace strrchr usage with SDL_strrchr
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 23, 2019
1 parent 6d4fb1e commit 611ed58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/music.c
Expand Up @@ -501,7 +501,7 @@ Mix_Music *Mix_LoadMUS(const char *file)

/* Use the extension as a first guess on the file type */
type = MUS_NONE;
ext = strrchr(file, '.');
ext = SDL_strrchr(file, '.');
if (ext) {
++ext; /* skip the dot in the extension */
if (SDL_strcasecmp(ext, "WAV") == 0) {
Expand Down

0 comments on commit 611ed58

Please sign in to comment.