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