net/softnic: fix string copy
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 31 Oct 2018 10:16:59 +0000 (10:16 +0000)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 2 Nov 2018 10:23:00 +0000 (11:23 +0100)
commit69fd1729c63277758cc9d3706b2c9751b22d6da8
treed6a69ba3e5dd5f32c02552029ae6c699542bd3f4
parentce13d80c36688db41175fb6cc722912114338e8a
net/softnic: fix string copy

Use strlcpy instead of strcpy to avoid buffer overrun.

Coverity issues: 323475,323478,323514,323515
Fixes: b767f8efc8 ("net/softnic: replace pointers with arrays")
Fixes: c169b6a588 ("net/softnic: map flow attribute to pipeline table")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
drivers/net/softnic/rte_eth_softnic_cli.c
drivers/net/softnic/rte_eth_softnic_flow.c