diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2020-04-23 20:27:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 20:27:26 +0200 |
commit | c334a16ef105b7b187943db177ed7623b01e79ba (patch) | |
tree | 79aa1a7def3eadc711549e9b0e81a773ca5fa569 /pimd/pim_vty.c | |
parent | Merge pull request #6184 from kssoman/route (diff) | |
parent | pimd, lib: suppress compiler warnings on snprintf (diff) | |
download | frr-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.c | 4 |
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); |