summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-13 13:10:56 -0300
committerpommicket <pommicket@gmail.com>2023-08-13 13:10:56 -0300
commit31c1f3acc7a56683b5512620419b8989a26dad4b (patch)
tree648fdec6c81f238903490f8c68092ad7241507fd /util.c
parent598d72c0674bb059c0f38f03c4851bcc61e5852d (diff)
documentation
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 7d5a853..2be0f19 100644
--- a/util.c
+++ b/util.c
@@ -451,7 +451,7 @@ void path_full(const char *dir, const char *relpath, char *abspath, size_t abspa
}
} else {
if (len == 0 || abspath[len - 1] != PATH_SEPARATOR)
- str_cat(abspath, abspath_size, PATH_SEPARATOR_STR);
+ str_catf(abspath, abspath_size, "%c", PATH_SEPARATOR);
strn_cat(abspath, abspath_size, relpath, component_len);
}
if (*component_end == 0)