convert snprintf to strlcpy
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 12 Mar 2018 11:33:00 +0000 (11:33 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 4 Apr 2018 15:33:08 +0000 (17:33 +0200)
commitc022cb400e920624dd10e162ef12917b3039b846
treec4c92b3ded4f9f0408aad7e606c22fd8226c93d8
parent5364de644a4ba99497edbed05bff942b2b461413
convert snprintf to strlcpy

Since we have support for the strlcpy function in DPDK, replace all
instances where a string is copied using snprintf.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
21 files changed:
app/pdump/main.c
app/test-pmd/parameters.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/failsafe/failsafe_args.c
drivers/net/mlx4/mlx4_ethdev.c
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mvpp2/mrvl_qos.c
drivers/net/tap/rte_eth_tap.c
examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
examples/ip_pipeline/pipeline/pipeline_passthrough_be.c
examples/load_balancer/config.c
lib/librte_cmdline/cmdline_parse.c
lib/librte_cmdline/cmdline_parse_etheraddr.c
lib/librte_cmdline/cmdline_parse_ipaddr.c
lib/librte_cmdline/cmdline_parse_portlist.c
lib/librte_cmdline/cmdline_parse_string.c
lib/librte_eal/common/eal_common_bus.c
lib/librte_pdump/rte_pdump.c
test/test/test_cmdline_cirbuf.c
test/test/test_eal_flags.c
test/test/test_malloc.c