Commit fed9b60492dad28c31d2e350cf46ff272620bd9d

Sam Lantinga 2016-10-10T23:26:26

Use SDL C runtime strlen()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c
index f225b3b..3fdbd82 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;