]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_fpm.c
*: sprintf -> snprintf
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 20 Apr 2020 18:12:38 +0000 (14:12 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 20 Apr 2020 23:14:33 +0000 (19:14 -0400)
commit772270f3b6a37a2dd9432541cce436e9b45bb6b9
treefc7f717a60d056b0300fcf43373a1fff30b94b13
parent3f0cc3ffb3ebbc67ebdc285b8093783ad572fa93
*: sprintf -> snprintf

Replace sprintf with snprintf where straightforward to do so.

- sprintf's into local scope buffers of known size are replaced with the
  equivalent snprintf call
- snprintf's into local scope buffers of known size that use the buffer
  size expression now use sizeof(buffer)
- sprintf(buf + strlen(buf), ...) replaced with snprintf() into temp
  buffer followed by strlcat

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
59 files changed:
babeld/babel_interface.c
bgpd/bgp_debug.c
bgpd/bgp_dump.c
bgpd/bgp_ecommunity.c
bgpd/bgp_evpn.c
bgpd/bgp_evpn_vty.c
bgpd/bgp_packet.c
bgpd/bgp_pbr.c
bgpd/bgp_rd.c
bgpd/bgp_route.c
bgpd/bgp_vpn.c
bgpd/bgp_vty.c
bgpd/rfapi/bgp_rfapi_cfg.c
bgpd/rfapi/rfapi.c
bgpd/rfapi/rfapi_vty.c
bgpd/rfapi/vnc_import_bgp.c
isisd/isis_lsp.c
ldpd/ldp_vty_exec.c
lib/csv.c
lib/if.c
lib/netns_linux.c
lib/pid_output.c
lib/plist.c
lib/ptm_lib.c
lib/vty.c
nhrpd/linux.c
ospf6d/ospf6_lsa.c
ospfd/ospf_ase.c
ospfd/ospf_dump.c
ospfd/ospf_dump_api.c
ospfd/ospf_lsa.c
ospfd/ospf_sr.c
ospfd/ospf_vty.c
pimd/mtracebis.c
pimd/pim_cmd.c
pimd/pim_igmp.c
pimd/pim_igmpv3.c
pimd/pim_instance.c
pimd/pim_msdp.c
pimd/pim_nht.c
pimd/pim_rp.c
pimd/pim_sock.c
pimd/pim_upstream.c
pimd/pim_vty.c
ripd/ripd.c
staticd/static_vty.c
tests/lib/test_zmq.c
tools/start-stop-daemon.c
vtysh/vtysh_config.c
vtysh/vtysh_user.c
zebra/rt_netlink.c
zebra/zebra_fpm.c
zebra/zebra_mpls.c
zebra/zebra_netns_notify.c
zebra/zebra_pbr.c
zebra/zebra_ptm.c
zebra/zebra_rib.c
zebra/zebra_routemap.c
zebra/zebra_vxlan.c