changeset 3882:842b03d703c5 SDL-1.2

backport from 1.3
author Sam Lantinga <slouken@libsdl.org>
date Sun, 01 Oct 2006 02:30:03 +0000
parents c1b6bb5205f1
children cfe850b334e7
files src/video/SDL_video.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sun Oct 01 02:07:09 2006 +0000
+++ b/src/video/SDL_video.c	Sun Oct 01 02:30:03 2006 +0000
@@ -175,8 +175,7 @@
 		}
 #endif
 		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);
 					break;