Use SDL C runtime strlen()
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Oct 2016 23:26:26 -0700
changeset 10507fe2700e08d39
parent 10506 84611383c7ef
child 10508 7235bc13912c
Use SDL C runtime strlen()
src/audio/alsa/SDL_alsa_audio.c
     1.1 --- a/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 10 15:29:18 2016 -0400
     1.2 +++ b/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 10 23:26:26 2016 -0700
     1.3 @@ -799,7 +799,7 @@
     1.4  
     1.5                  for (j = 0; prefixes[j]; j++) {
     1.6                      const char *prefix = prefixes[j];
     1.7 -                    const size_t prefixlen = strlen(prefix);
     1.8 +                    const size_t prefixlen = SDL_strlen(prefix);
     1.9                      if (SDL_strncmp(name, prefix, prefixlen) == 0) {
    1.10                          if (j < bestmatch) {
    1.11                              bestmatch = j;