Commit f9b43fac authored by Ryan C. Gordon's avatar Ryan C. Gordon

Replaced strncmp for SDL_AUDIODRIVER test with strcasecmp.

 Fixes Bugzilla #334.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402122
parent 75efbfe5
......@@ -371,7 +371,7 @@ 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;
......@@ -397,8 +397,7 @@ SDL_AudioInit(const char *driver_name)
if (audio == NULL) {
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()) {
audio = bootstrap[i]->create(idx);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment