aboutsummaryrefslogtreecommitdiffstats
path: root/src/filepath.c
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-11-18 15:30:24 +0100
committerTharre <tharre3@gmail.com>2018-11-18 15:37:50 +0100
commitdaee85f9b3ecbcbda5e1a9599a27266928e887b3 (patch)
tree12a49bd725e489b57aba68b34582007f2b101e95 /src/filepath.c
parent2bb922a7cc5f31551b9c5b09d3141dfab4633a39 (diff)
downloadredo-daee85f9b3ecbcbda5e1a9599a27266928e887b3.tar.gz
redo-daee85f9b3ecbcbda5e1a9599a27266928e887b3.tar.xz
redo-daee85f9b3ecbcbda5e1a9599a27266928e887b3.zip
Better concat that doesn't need a size argument
Diffstat (limited to 'src/filepath.c')
-rw-r--r--src/filepath.c2
1 files changed, 1 insertions, 1 deletions
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);
}