changed a couple of places to use strlcpy()
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 15c56c8..4c2e984 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -872,7 +872,7 @@ char *f_name(struct file_struct *f)
        if (f->dirname) {
                sprintf(p, "%s/%s", f->dirname, f->basename);
        } else {
-               strcpy(p, f->basename);
+               strlcpy(p, f->basename, MAXPATHLEN-1);
        }
 
        return p;