summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rp.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2020-04-18 01:56:49 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-04-18 01:59:02 +0200
commit96e43299b42dc60d06ceef8a5c9a34a949e32a26 (patch)
tree94ea2bc6f015e5b36900cb3f15682c53b0adbc5b /pimd/pim_rp.c
parentMerge pull request #6248 from donaldsharp/zebra_snmp (diff)
downloadfrr-96e43299b42dc60d06ceef8a5c9a34a949e32a26.tar.xz
frr-96e43299b42dc60d06ceef8a5c9a34a949e32a26.zip
pimd: don't use strcpy
>:( Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--pimd/pim_rp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index a9f1d9335..ef5f47822 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -1261,11 +1261,11 @@ void pim_rp_show_information(struct pim_instance *pim, struct vty *vty, bool uj)
char buf[48];
if (rp_info->rp_src == RP_SRC_STATIC)
- strcpy(source, "Static");
+ strlcpy(source, "Static", sizeof(source));
else if (rp_info->rp_src == RP_SRC_BSR)
- strcpy(source, "BSR");
+ strlcpy(source, "BSR", sizeof(source));
else
- strcpy(source, "None");
+ strlcpy(source, "None", sizeof(source));
if (uj) {
/*
* If we have moved on to a new RP then add the