examples/ipsec-secgw: replace strncpy with strlcpy
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 9 May 2018 16:11:06 +0000 (17:11 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 21:54:28 +0000 (23:54 +0200)
commitae943ebe1ed3a0618129461a9d8396c917174f95
tree15e9777720c644693674ea81e008c41b925903f0
parent491cf0eaa177d6aa14f2a1e124e57d8aee134c2b
examples/ipsec-secgw: replace strncpy with strlcpy

Use strlcpy instead of strncpy.
Use strcpy where boundchecks on destination is not needed.

Fixes: 0d547ed037 ("examples/ipsec-secgw: support configuration file")
Fixes: 07b156199f ("examples/ipsec-secgw: fix configuration string termination")
Fixes: a1469c319f ("examples/ipsec-secgw: fix configuration parsing")
Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/ipsec-secgw/parser.c