summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 12277aa0ea..42c56f7203 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -107,7 +107,7 @@ char* get_dir(char* buf, int buf_size, const char* path, int level)
107 break; 107 break;
108 108
109 last_sep = sep - 1; 109 last_sep = sep - 1;
110 if (*last_sep != '/') /* ignore multiple separators */ 110 if (last_sep < path || *last_sep != '/') /* ignore multiple separators */
111 level--; 111 level--;
112 } 112 }
113 } 113 }