aboutsummaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 632921f..84e1e9c 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -90,7 +90,7 @@ int tree(const char *path, const char *prefix, int use_color)
prefix_depth = "│ ";
}
- full_path = xstrcat(path, entries[i], "/");
+ full_path = xstrcat(path, "/", entries[i], NULL);
printf("%s%s", prefix, pointer);
if(file_exist(full_path) == F_ISDIR) {
printf("%s%s%s\n",