aboutsummaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2025-02-10 21:34:08 +0300
committerJoursoir <chat@joursoir.net>2025-02-10 21:34:28 +0300
commite9a715195fbf82c9ea7d4b2d6699351468fab222 (patch)
tree101b362b2a0da53bc855382d837b2528b02c8b19 /src/tree.c
parent520b9fa310b3e649420a0b6aa040e42af4928dee (diff)
downloadlock-password-e9a715195fbf82c9ea7d4b2d6699351468fab222.tar.gz
lock-password-e9a715195fbf82c9ea7d4b2d6699351468fab222.tar.bz2
lock-password-e9a715195fbf82c9ea7d4b2d6699351468fab222.zip
make xstrcat() concats a variable number of strings
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",