some minor optimisations
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 86bf4aa..1a89a2f 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -917,7 +917,9 @@ char *f_name(struct file_struct *f)
        n = (n+1)%10;
 
        if (f->dirname) {
-               slprintf(p, MAXPATHLEN-1, "%s/%s", f->dirname, f->basename);
+               strlcpy(p, f->dirname, MAXPATHLEN-1);
+               strlcat(p, "/", MAXPATHLEN-1);
+               strlcat(p, f->basename, MAXPATHLEN-1);
        } else {
                strlcpy(p, f->basename, MAXPATHLEN-1);
        }