diff --git a/src/sound.c b/src/sound.c index e048ed0..7ee956b 100644 --- a/src/sound.c +++ b/src/sound.c @@ -164,7 +164,7 @@ static int sound_makeList(void) { sound_list = realloc(sound_list, ++nsound_list * sizeof(alSound)); // Remove the prefix and suffix. - len = strlen(files[i]) - strlen(SOUND_SUFFIX SOUND_SUFFIX); + len = strlen(files[i]) - strlen(SOUND_SUFFIX SOUND_PREFIX); strncpy(tmp, files[i] + strlen(SOUND_PREFIX), len); tmp[len] = '\0';