Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ac476ff

Browse files
committed
fix warning ssu_rsync.c
1 parent adeed6a commit ac476ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎ssu_rsync.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ void renewal(int count) // 파일 동기화
508508

509509
lstat(change_list[i].name, &statbuf);
510510
if (src_is_dir)
511-
sprintf(path, "%s/%s", dst_path, change_list[i].name + strlen(src_path) + 1); // 동기화된 파일 경로 생성
511+
sprintf(path, "%.*s/%s", (int)strlen(dst_path), dst_path, change_list[i].name + strlen(src_path) + 1); // 동기화된 파일 경로 생성
512512
else
513-
sprintf(path, "%s/%s", dst_path, change_list[i].name + strlen(src_path) - strlen(get_file_name(src_path))); // 동기화된 파일 경로 생성
513+
sprintf(path, "%.*s/%s", (int)strlen(dst_path), dst_path, change_list[i].name + strlen(src_path) - strlen(get_file_name(src_path))); // 동기화된 파일 경로 생성
514514
#ifdef DEBUG
515515
printf("renewal: path = %s\n", path);
516516
#endif
@@ -615,7 +615,7 @@ void renewal_tar(int count)
615615
size = statbuf.st_size; // 압축 파일 크기 획득
616616

617617
// DST 내부로 tar 파일 이동
618-
sprintf(path, "%s/%.*s", dst_path, (int)strlen(file_name), file_name); // 이동 시킬 경로 생성
618+
sprintf(path, "%.*s/%s", (int)strlen(dst_path), dst_path, file_name); // 이동 시킬 경로 생성
619619
#ifdef DEBUG
620620
printf("renewal_tar(): mv %s %s\n", file_name, path);
621621
#endif

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /