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

2018-02-20 Thread Bruce Richardson
On Tue, Feb 20, 2018 at 01:52:22PM +, Radu Nicolau wrote: > Replace strncpy with snprintf to avoid overwriting the last > NULL character. > > Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") > Coverity issue: 143252 > > Cc: sta...@dpdk.org > > Signed-off-by: Radu Nicolau

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

2018-02-20 Thread Radu Nicolau
Replace strncpy with snprintf to avoid overwriting the last NULL character. Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") Coverity issue: 143252 Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau --- v3: replaced strncpy with snprintf app/proc_info/main.c | 2 +- 1 file c