net/af_xdp: use strlcpy instead of strncpy
authorCiara Loftus <ciara.loftus@intel.com>
Wed, 7 Oct 2020 09:20:50 +0000 (09:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:18:47 +0000 (19:18 +0200)
commit6d3c595d3a4e856307b92d1a824b07b48da1cc3c
treebf5205e3c4d594c15c0bea98fe7e2aa27c4a348d
parent9ef7dc22f24c949a815beab54c83b2e85759d94b
net/af_xdp: use strlcpy instead of strncpy

strncpy may leave the destination buffer not NULL terminated so use
strlcpy instead.

Coverity issue: 362975
Fixes: 339b88c6a91f ("net/af_xdp: support multi-queue")
Cc: stable@dpdk.org
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c