1
0
Fork 0
forked from len0rd/rockbox

Do a case-insensitive compare of the prefix part of filename settings.

fixes FS#6640


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12279 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-02-12 02:36:32 +00:00
parent afbc79d347
commit 332b324af8

View file

@ -348,7 +348,9 @@ bool settings_load_config(const char* file, bool apply)
if (settings[i].filename_setting->prefix) if (settings[i].filename_setting->prefix)
{ {
int len = strlen(settings[i].filename_setting->prefix); int len = strlen(settings[i].filename_setting->prefix);
if (!strncmp(value,settings[i].filename_setting->prefix,len)) if (!strncasecmp(value,
settings[i].filename_setting->prefix,
len))
{ {
strncpy(storage,&value[len],MAX_PATH); strncpy(storage,&value[len],MAX_PATH);
} }