summaryrefslogtreecommitdiffstats
path: root/pimd/pim_vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2020-04-23 20:27:26 +0200
committerGitHub <noreply@github.com>2020-04-23 20:27:26 +0200
commitc334a16ef105b7b187943db177ed7623b01e79ba (patch)
tree79aa1a7def3eadc711549e9b0e81a773ca5fa569 /pimd/pim_vty.c
parentMerge pull request #6184 from kssoman/route (diff)
parentpimd, lib: suppress compiler warnings on snprintf (diff)
downloadfrr-c334a16ef105b7b187943db177ed7623b01e79ba.tar.xz
frr-c334a16ef105b7b187943db177ed7623b01e79ba.zip
Merge pull request #6262 from qlyoung/remove-sprintf
Diffstat (limited to 'pimd/pim_vty.c')
-rw-r--r--pimd/pim_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c
index fee8d6ed1..1f2ca11db 100644
--- a/pimd/pim_vty.c
+++ b/pimd/pim_vty.c
@@ -172,9 +172,9 @@ int pim_global_config_write_worker(struct pim_instance *pim, struct vty *vty)
char spaces[10];
if (pim->vrf_id == VRF_DEFAULT)
- sprintf(spaces, "%s", "");
+ snprintf(spaces, sizeof(spaces), "%s", "");
else
- sprintf(spaces, "%s", " ");
+ snprintf(spaces, sizeof(spaces), "%s", " ");
writes += pim_msdp_config_write(pim, vty, spaces);