examples/ipsec-secgw: fix IP address parsing
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Mon, 14 May 2018 10:00:51 +0000 (11:00 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 May 2018 11:57:08 +0000 (13:57 +0200)
commit1bdea6110ab527e3b26a3387cf95bf6ab14b97d6
treed2e566f3cf4a056917cde6c5bae0dd3145bacf9c
parentadea04c495308ec849fadb85916982c2bbb6c04b
examples/ipsec-secgw: fix IP address parsing

In strlcpy function parameters there was no allowance for
null terminator, so ip address was copied without last character.

Fixes: ae943ebe1ed3 ("examples/ipsec-secgw: replace strncpy with strlcpy")
Cc: stable@dpdk.org
Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/ipsec-secgw/parser.c