From e9a715195fbf82c9ea7d4b2d6699351468fab222 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 10 Feb 2025 21:34:08 +0300 Subject: make xstrcat() concats a variable number of strings --- src/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tree.c') 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", -- cgit v1.2.3-18-g5258