src/audio/SDL_audio.c
changeset 6900 767690d1c013
parent 6885 700f1b25f77f
child 6904 9fea506e48ab
     1.1 --- a/src/audio/SDL_audio.c	Mon Feb 18 18:28:02 2013 -0800
     1.2 +++ b/src/audio/SDL_audio.c	Mon Feb 18 20:14:24 2013 -0800
     1.3 @@ -580,8 +580,8 @@
     1.4      for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
     1.5          /* make sure we should even try this driver before doing so... */
     1.6          const AudioBootStrap *backend = bootstrap[i];
     1.7 -        if (((driver_name) && (SDL_strcasecmp(backend->name, driver_name))) ||
     1.8 -            ((!driver_name) && (backend->demand_only))) {
     1.9 +        if ((driver_name && (SDL_strncasecmp(backend->name, driver_name, SDL_strlen(driver_name)) != 0)) ||
    1.10 +            (!driver_name && backend->demand_only)) {
    1.11              continue;
    1.12          }
    1.13