X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9a4a237edef9bd21139e4400838b8a99cabd2a98..0417c34e2d641cbac292ba5cf8a619249c87d4e3:/flist.c diff --git a/flist.c b/flist.c index 1a259bcd..1f11193f 100644 --- a/flist.c +++ b/flist.c @@ -1176,7 +1176,7 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) static char *lastdir; static int lastdir_len; - strcpy(olddir, curr_dir); /* can't overflow */ + strlcpy(olddir, curr_dir, sizeof olddir); if (!push_dir(dir)) { io_error |= IOERR_GENERAL;