summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index e48ec48..e825bad 100644
--- a/src/util.c
+++ b/src/util.c
@@ -174,7 +174,7 @@ char *getpath(struct dir *cur, char *to) {
to[0] = '\0';
while(c--) {
- if(list[c]->parent && list[c]->name[strlen(list[c]->name)-1] != '/')
+ if(list[c]->parent && list[c]->parent->name[strlen(list[c]->parent->name)-1] != '/')
strcat(to, "/");
strcat(to, list[c]->name);
}