Re: [dpdk-dev] [PATCH] app/procinfo: fix strncpy count issue

2018-02-20 Thread Bruce Richardson
On Tue, Feb 20, 2018 at 12:57:36PM +, Radu Nicolau wrote: > Change strncpy count parameter to MAX_LONG_OPT_SZ-1 to avoid > overwriting the last NULL character and for consistency. > > Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") > Coverity issue: 30688 > > Cc: sta...@

[dpdk-dev] [PATCH] app/procinfo: fix strncpy count issue

2018-02-20 Thread Radu Nicolau
Change strncpy count parameter to MAX_LONG_OPT_SZ-1 to avoid overwriting the last NULL character and for consistency. Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") Coverity issue: 30688 Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau --- app/proc_info/main.c | 2 +- 1 f