summaryrefslogtreecommitdiff
path: root/src/file.c
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-10-23 15:51:21 +0900
committerRyo Nakamura <upa@haeena.net>2022-10-23 15:51:21 +0900
commitd11ac58f4b95b2f0fe3579b6fd430b2c29465af2 (patch)
treebddf2e8f3e57018e90e41cb0f2966989d9e16ecd /src/file.c
parent99b2bca7e537f2954d2f99ebeb4d5f93a7bcb91f (diff)
compilable in linux
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file.c b/src/file.c
index 462f05a..4d04d18 100644
--- a/src/file.c
+++ b/src/file.c
@@ -306,7 +306,9 @@ int file_fill_dst(char *target, struct list_head *file_list)
list_for_each_entry(f, file_list, list) {
f->dst_remote = dst_remote;
- snprintf(f->dst_path, PATH_MAX, "%s/%s", dst_path, f->path);
+ strncat(f->dst_path, dst_path, PATH_MAX);
+ strncat(f->dst_path, "/", PATH_MAX);
+ strncat(f->dst_path, f->path, PATH_MAX);
}
return 0;