X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a644fc3cc40cb49296a078a7b55b146bf2871f9b..ac1d2d338450eb005abf03002f5784097caf7e19:/log.c diff --git a/log.c b/log.c index 3f8fd53b..d29e2b94 100644 --- a/log.c +++ b/log.c @@ -385,8 +385,8 @@ static void log_formatted(enum logcode code, break; case 'o': n = op; break; case 'f': - snprintf(buf2, sizeof(buf2), "%s/%s", - file->basedir?file->basedir:"", + pathjoin(buf2, sizeof buf2, + file->basedir ? file->basedir : "", f_name(file)); clean_fname(buf2); n = buf2;