diff options
author | pommicket <pommicket@gmail.com> | 2022-01-01 19:03:46 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-01-01 19:12:37 -0500 |
commit | 83bf9674c625ea6898707f97a60036e19ba94858 (patch) | |
tree | 9d0bbed2706e934ebaa04fbebe6f6fe1601674bf /util.c | |
parent | d2e92f718ee26653ff1ae303ead2d983c92007c1 (diff) |
little fix to paths, update README for linux build
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -281,6 +281,8 @@ static void path_full(char const *dir, char const *relpath, char *abspath, size_ } else { str_cpy(abspath, abspath_size, dir); } + if (abspath[strlen(abspath) - 1] != PATH_SEPARATOR) + str_cat(abspath, abspath_size, PATH_SEPARATOR_STR); while (*relpath) { size_t component_len = strcspn(relpath, ALL_PATH_SEPARATORS); |