diff src/video/SDL_video.c @ 2046:da8332c8f480

Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp
author Sam Lantinga <slouken@libsdl.org>
date Sun, 01 Oct 2006 02:28:41 +0000
parents 8055185ae4ed
children c9aa6bcb26f3
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sun Oct 01 02:06:37 2006 +0000
+++ b/src/video/SDL_video.c	Sun Oct 01 02:28:41 2006 +0000
@@ -198,8 +198,7 @@
     }
     if (driver_name != NULL) {
         for (i = 0; bootstrap[i]; ++i) {
-            if (SDL_strncmp(bootstrap[i]->name, driver_name,
-                            SDL_strlen(bootstrap[i]->name)) == 0) {
+            if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
                 if (bootstrap[i]->available()) {
                     video = bootstrap[i]->create(index);
                 }