diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index cc335a8abde9..edb1ca470e71 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -407,7 +407,7 @@ main (int argc, char **argv) } else { - strcpy(vty_path, vty_sock_path); + strlcpy(vty_path, vty_sock_path, sizeof(vty_path)); } vty_serv_sock (vty_addr, vty_port, vty_path);