summaryrefslogtreecommitdiff
path: root/drivers/net/mvpp2
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2018-03-12 11:33:00 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-04-04 17:33:08 +0200
commitc022cb400e920624dd10e162ef12917b3039b846 (patch)
treec4c92b3ded4f9f0408aad7e606c22fd8226c93d8 /drivers/net/mvpp2
parent5364de644a4ba99497edbed05bff942b2b461413 (diff)
downloaddpdk-next-eventdev-c022cb400e920624dd10e162ef12917b3039b846.zip
dpdk-next-eventdev-c022cb400e920624dd10e162ef12917b3039b846.tar.gz
dpdk-next-eventdev-c022cb400e920624dd10e162ef12917b3039b846.tar.xz
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>
Diffstat (limited to 'drivers/net/mvpp2')
-rw-r--r--drivers/net/mvpp2/mrvl_qos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mvpp2/mrvl_qos.c b/drivers/net/mvpp2/mrvl_qos.c
index 741d3da..70d000c 100644
--- a/drivers/net/mvpp2/mrvl_qos.c
+++ b/drivers/net/mvpp2/mrvl_qos.c
@@ -242,7 +242,7 @@ get_entry_values(const char *entry, uint8_t *tab,
return -1;
/* Copy the entry to safely use rte_strsplit(). */
- snprintf(entry_cpy, RTE_DIM(entry_cpy), "%s", entry);
+ strlcpy(entry_cpy, entry, RTE_DIM(entry_cpy));
/*
* If there are more tokens than array size, rte_strsplit will