Re: [dpdk-dev] [PATCH 1/2] ethdev: replace snprintf with strlcpy

2019-02-28 Thread Andrew Rybchenko
On 3/1/19 1:47 AM, Stephen Hemminger wrote: The set_port_owner was copying a string between structures of the same type, therefore the name could never be truncated (unless source string was not null terminated). Use strlcpy which does it better. Signed-off-by: Stephen Hemminger Acked-by: An

[dpdk-dev] [PATCH 1/2] ethdev: replace snprintf with strlcpy

2019-02-28 Thread Stephen Hemminger
The set_port_owner was copying a string between structures of the same type, therefore the name could never be truncated (unless source string was not null terminated). Use strlcpy which does it better. Signed-off-by: Stephen Hemminger --- lib/librte_ethdev/rte_ethdev.c | 8 ++-- 1 file cha