]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/af_xdp/rte_eth_af_xdp.c
net/bnxt: consolidate template table processing
[dpdk.git] / drivers / net / af_xdp / rte_eth_af_xdp.c
index eaf2c9c873bc5a3fd29e7dbed065489bc591e3f1..ac00cbab8eae826f05e2f909ccf9194cca2c7385 100644 (file)
@@ -1362,7 +1362,7 @@ xdp_get_channels_info(const char *if_name, int *max_queues,
 
        channels.cmd = ETHTOOL_GCHANNELS;
        ifr.ifr_data = (void *)&channels;
-       strncpy(ifr.ifr_name, if_name, IFNAMSIZ);
+       strlcpy(ifr.ifr_name, if_name, IFNAMSIZ);
        ret = ioctl(fd, SIOCETHTOOL, &ifr);
        if (ret) {
                if (errno == EOPNOTSUPP) {