From 0eb83fe462a800d8dde96f0975d33a7f95ca9ba0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 4 Sep 2015 16:09:09 -0700 Subject: [PATCH] Make option and block names case-sensitive This is to avoid any issues with device names that can be case-sensitive, and strcasecmp not working properly for non-ASCII-7 uppercase characters. --- Alc/alcConfig.c | 2 +- alsoftrc.sample | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index b69631ea..6fc9db33 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -483,7 +483,7 @@ const char *GetConfigValue(const char *devName, const char *blockName, const cha for(i = 0;i < cfgBlock.entryCount;i++) { - if(strcasecmp(cfgBlock.entries[i].key, key) == 0) + if(strcmp(cfgBlock.entries[i].key, key) == 0) { TRACE("Found %s = \"%s\"\n", key, cfgBlock.entries[i].value); if(cfgBlock.entries[i].value[0]) diff --git a/alsoftrc.sample b/alsoftrc.sample index 3f4a0c63..b85e2c3b 100644 --- a/alsoftrc.sample +++ b/alsoftrc.sample @@ -18,8 +18,8 @@ # specific override settings in $HOME/.alsoftrc. # For Windows, these settings should go into $AppData\alsoft.ini # -# Option and block names are case-insenstive. The supplied values are only -# hints and may not be honored (though generally it'll try to get as close as +# Option and block names are case-senstive. The supplied values are only hints +# and may not be honored (though generally it'll try to get as close as # possible). Note: options that are left unset may default to app- or system- # specified values. These are the current available settings: