summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ospfd/ospf_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index cc335a8abd..edb1ca470e 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);