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

Andrew Rybchenko arybchenko at solarflare.com
Fri Mar 1 08:40:43 CET 2019


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 <stephen at networkplumber.org>

Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>



More information about the dev mailing list