Re: [dpdk-dev] [PATCH 1/2] rte_mempool: fix strncpy warnings

2018-03-20 Thread Olivier Matz
Hi Stephen, On Mon, Mar 19, 2018 at 10:52:12AM -0700, Stephen Hemminger wrote: > [dpdk-dev] [PATCH 1/2] rte_mempool: fix strncpy warnings The title should be prefixed by "mbuf:" instead of "rte_mempool:" > Gcc-8 discovers issue with platform_mempool_ops. > rt

[dpdk-dev] [PATCH 1/2] rte_mempool: fix strncpy warnings

2018-03-19 Thread Stephen Hemminger
Gcc-8 discovers issue with platform_mempool_ops. rte_mbuf_pool_ops.c:26:3: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncpy(mz->addr, ops_name, strlen(ops_name)); The issue is that the size shoul