X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/45ccc5c08c0765171721211e8e97c1ccf3db6978..e45e0093094fd7e7dd44531bff74188b67869cc4:/flist.c diff --git a/flist.c b/flist.c index 15c56c8e..4c2e984c 100644 --- 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;