Commit 8ad5cea3 authored by Wayne Davison's avatar Wayne Davison

Changed one strcpy() into a strlcpy().

parent 9059e0ac
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment