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:
parent
afbc79d347
commit
332b324af8
1 changed files with 3 additions and 1 deletions
|
|
@ -348,7 +348,9 @@ bool settings_load_config(const char* file, bool apply)
|
|||
if (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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue