From: Wayne Davison Date: Tue, 20 Jan 2004 05:15:14 +0000 (+0000) Subject: Use new pathjoin() function. X-Git-Tag: v2.6.1pre1~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d2b0ef9d72621fd0a1530afb3f03fdb7ea2e24;p=thirdparty%2Frsync.git Use new pathjoin() function. --- 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;