diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 6e52942..f31811b 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -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); |