src/video/SDL_video.c
changeset 6900 767690d1c013
parent 6885 700f1b25f77f
child 6936 76d9c31e823d
child 8439 14d94a8a9fb6
--- a/src/video/SDL_video.c	Mon Feb 18 18:28:02 2013 -0800
+++ b/src/video/SDL_video.c	Mon Feb 18 20:14:24 2013 -0800
@@ -437,7 +437,7 @@
     }
     if (driver_name != NULL) {
         for (i = 0; bootstrap[i]; ++i) {
-            if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
+            if (SDL_strncasecmp(bootstrap[i]->name, driver_name, SDL_strlen(driver_name)) == 0) {
                 video = bootstrap[i]->create(index);
                 break;
             }