# HG changeset patch # User Ryan C. Gordon # Date 1159668429 0 # Node ID c1b6bb5205f120bfde3b60fbfbbbd103f13ffbaa # Parent 74e828c64315937d5923c40c36e2d932ea48daf3 1.2 backport: Replaced strncmp for SDL_AUDIODRIVER test with strcasecmp. Fixes Bugzilla #334. diff -r 74e828c64315 -r c1b6bb5205f1 src/audio/SDL_audio.c --- a/src/audio/SDL_audio.c Sun Sep 24 15:45:37 2006 +0000 +++ b/src/audio/SDL_audio.c Sun Oct 01 02:07:09 2006 +0000 @@ -350,7 +350,7 @@ 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 @@ } #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;