From 5be4d340e4f8be9eb6776af22b9e1d236aba7b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Tue, 8 Oct 2002 15:45:50 +0000 Subject: [PATCH] Minor bug fix git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2536 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tree.c b/apps/tree.c index 6e52942b45..f31811b9a5 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);