Minor bug fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2536 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dea31222b8
commit
5be4d340e4
1 changed files with 1 additions and 1 deletions
|
@ -669,7 +669,7 @@ static void storefile(char* filename, char* setting, int maxlen)
|
|||
ptr--;
|
||||
}
|
||||
|
||||
if (strcmp(ROCKBOX_DIR, currdir) || (len > maxlen-extlen))
|
||||
if (strcmp(ROCKBOX_DIR, currdir) || (len-extlen > maxlen))
|
||||
return;
|
||||
|
||||
strncpy(setting, filename, len-extlen);
|
||||
|
|
Loading…
Reference in a new issue