pdump: fix string overflow
authorReshma Pattan <reshma.pattan@intel.com>
Fri, 24 Jun 2016 16:36:21 +0000 (17:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 14:50:17 +0000 (16:50 +0200)
commit3bb262e2631d930812fda59f25c4eb0402f3b698
treedb10070461ae10efa6cded38d6425d8fa374d3de
parentf3c1829130acde3b8969f013dbb14cebf7575863
pdump: fix string overflow

replaced strncpy with snprintf for safely
copying the strings.

Coverity issue: 127350

Fixes: 278f945402c5 ("pdump: add new library for packet capture")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_pdump/rte_pdump.c