app/pdump: fix string overflow
authorReshma Pattan <reshma.pattan@intel.com>
Fri, 24 Jun 2016 16:36:22 +0000 (17:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 14:50:20 +0000 (16:50 +0200)
commit819d48b9d0f6ba486d3972ff709074b6a037e3a6
treee890495ffcd16fdda0f0c04e0f1a8eb909693747
parent3bb262e2631d930812fda59f25c4eb0402f3b698
app/pdump: fix string overflow

replaced strncpy with snprintf for safely
copying the strings.

Coverity issue: 127351

Fixes: caa7028276b8 ("app/pdump: add tool for packet capturing")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
app/pdump/main.c