From 15396c3db00adc4f89be3250802801d15927298e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 1 Oct 2006 02:07:09 +0000 Subject: [PATCH] 1.2 backport: Replaced strncmp for SDL_AUDIODRIVER test with strcasecmp. Fixes Bugzilla #334. --- src/audio/SDL_audio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 84a5e0742..bac4847ff 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -350,7 +350,7 @@ int SDL_AudioInit(const char *driver_name) This probably isn't the place to do this, but... Shh! :) */ for ( i=0; bootstrap[i]; ++i ) { - if ( SDL_strcmp(bootstrap[i]->name, "esd") == 0 ) { + if ( SDL_strcasecmp(bootstrap[i]->name, "esd") == 0 ) { #ifdef HAVE_PUTENV const char *esd_no_spawn; @@ -381,8 +381,7 @@ int SDL_AudioInit(const char *driver_name) } #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() ) { audio=bootstrap[i]->create(idx); break;