Re: [dpdk-dev] [PATCH] bus/ifpga: fix strncpy with wrong length with strlcpy

2018-05-12 Thread Andy Green
On 05/13/2018 11:24 AM, Andy Green wrote: In function ‘ifpga_scan_one’, inlined from ‘ifpga_scan’ at /home/agreen/projects/ lagopus/src/dpdk/drivers/bus/ifpga/ifpga_bus.c:229:13: /home/agreen/projects/lagopus/src/dpdk/drivers/bus/ifpga/ ifpga_bus.c:161:2: error: ‘strncpy’ specified bound 2

[dpdk-dev] [PATCH] bus/ifpga: fix strncpy with wrong length with strlcpy

2018-05-12 Thread Andy Green
In function ‘ifpga_scan_one’, inlined from ‘ifpga_scan’ at /home/agreen/projects/ lagopus/src/dpdk/drivers/bus/ifpga/ifpga_bus.c:229:13: /home/agreen/projects/lagopus/src/dpdk/drivers/bus/ifpga/ ifpga_bus.c:161:2: error: ‘strncpy’ specified bound 256 equals destination size [-Werror=stringop-tr