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