X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/baa4212ae117ed0d6c21d7e3d827e05329caceb8..4337c8f856340f398695811ddaa5c6f8d005379f:/rsync.c diff --git a/rsync.c b/rsync.c index 670f48b3..3c1115f7 100644 --- a/rsync.c +++ b/rsync.c @@ -93,7 +93,7 @@ int delete_file(char *fname) if (strcmp(dname,".") == 0 || strcmp(dname,"..") == 0) continue; - snprintf(buf, sizeof(buf), "%s/%s", fname, dname); + pathjoin(buf, sizeof buf, fname, dname); if (verbose > 0) rprintf(FINFO,"deleting %s\n", buf); if (delete_file(buf) != 0) {