From daee85f9b3ecbcbda5e1a9599a27266928e887b3 Mon Sep 17 00:00:00 2001 From: Tharre Date: Sun, 18 Nov 2018 15:30:24 +0100 Subject: Better concat that doesn't need a size argument --- src/filepath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filepath.c') diff --git a/src/filepath.c b/src/filepath.c index b752e08..2f175ef 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -129,7 +129,7 @@ void mkpath(char *path, mode_t mode) { /* Make path absolute by prepending root, if path isn't already absolute. */ char *make_abs(char *root, char *path) { if (!is_absolute(path)) - return concat(3, root, "/", path); + return concat(root, "/", path); else return xstrdup(path); } -- cgit v1.2.3-70-g09d2