diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c index f225b3b4e..3fdbd820a 100644 --- a/src/audio/alsa/SDL_alsa_audio.c +++ b/src/audio/alsa/SDL_alsa_audio.c @@ -799,7 +799,7 @@ ALSA_HotplugThread(void *arg) for (j = 0; prefixes[j]; j++) { const char *prefix = prefixes[j]; - const size_t prefixlen = strlen(prefix); + const size_t prefixlen = SDL_strlen(prefix); if (SDL_strncmp(name, prefix, prefixlen) == 0) { if (j < bestmatch) { bestmatch = j;