aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckutil.c
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-08 23:47:07 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-08 23:47:07 +0300
commitfe781e5ae7116733e5b335a0ac016af97266db5f (patch)
treed5cf6ebfc27b84745df5d6e3db04b04d0b524706 /src/ckutil.c
parentf67f2c3d5b67f54dae2c2c2754f43b4351445c80 (diff)
downloadck-fe781e5ae7116733e5b335a0ac016af97266db5f.tar.gz
ck-fe781e5ae7116733e5b335a0ac016af97266db5f.tar.bz2
ck-fe781e5ae7116733e5b335a0ac016af97266db5f.zip
Way better Edit
Diffstat (limited to 'src/ckutil.c')
-rw-r--r--src/ckutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ckutil.c b/src/ckutil.c
index a477b36..9bfa139 100644
--- a/src/ckutil.c
+++ b/src/ckutil.c
@@ -97,13 +97,11 @@ int util_symlink_file(const char *path, const char* dest) {
}
void str_make_ck_config_name(char *ret, const char *path,
- const char *progName) {
+ const char *progName) {
char *basec = strdup(path);
char *bname = basename(basec);
- strcpy(ret, progName);
- strcat(ret, "_");
- strcat(ret, bname);
+ str_join_dirname_with_basename(ret, progName, bname);
free(basec);
}