We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 100e53d commit 26b64a4Copy full SHA for 26b64a4
ssu_rsync.c
@@ -167,7 +167,7 @@ int main(int argc, char *argv[])
167
chdir(pwd); // 실행 경로로 복귀
168
signal(SIGINT, recovery); // SIGINT 시그널 처리
169
syncronize(src_path, dst_path); // 동기화
170
- sprintf(swap_path, "%s.swp", dst_path);
+ sprintf(swap_path, "%.*s.swp", (int)strlen(dst_path), dst_path);
171
#ifdef DEBUG
172
printf("ssu_rsync(): swap_path = %s\n", swap_path);
173
#endif
@@ -606,7 +606,7 @@ void renewal_tar(int count)
606
chdir(path);
607
lstat(file_name, &statbuf); // 상태 정보 획득
608
size = statbuf.st_size; // 압축 파일 크기 획득
609
- sprintf(path, "%s/%s", dst_path, file_name); // 압축 풀 경로 생성
+ sprintf(path, "%.*s/%.*s", (int)strlen(dst_path), dst_path, (int)strlen(file_name), file_name); // 압축 풀 경로 생성
610
rename(file_name, path); // 압축 파일 이동
611
612
printf("renewal_tar(): cd %s\n", dst_path);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments