X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e42c9458c2f1e3a78d6d45e99741d6edb38fc0cc..1a016bfdec2823c6d4e78a3dcc253cdfc30a10af:/flist.c diff --git a/flist.c b/flist.c index bc1ceba9..cf401519 100644 --- a/flist.c +++ b/flist.c @@ -616,7 +616,7 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) thus getting their permissions right */ *p = 0; if (strcmp(lastpath,fname)) { - strcpy(lastpath, fname); + strlcpy(lastpath, fname, sizeof(lastpath)-1); *p = '/'; for (p=fname+1; (p=strchr(p,'/')); p++) { *p = 0;