From 8ad5cea371a004d9b52194d073208d2f269462c0 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 17 Sep 2005 21:49:24 +0000 Subject: [PATCH] Changed one strcpy() into a strlcpy(). --- flist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1