dpdk: fix null-termination of strings 19/22019/4
authorElias Rudberg <elias.rudberg@bahnhof.net>
Thu, 12 Sep 2019 12:57:47 +0000 (14:57 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 12 Sep 2019 14:21:22 +0000 (14:21 +0000)
commit7fd402163c221919446942c0784073a56bfd4f70
tree5239fa8c69d342307aef9f4febf80d952934a5cf
parent58519563acc0933771172941291b7d0de2ffeddc
dpdk: fix null-termination of strings

Fix problem with some strings not being null-terminated,
by using the vec_terminate_c_string macro in two places.
The problem was found using AddressSanitizer.
(Also make sure indentation is OK for those changes.)

Ticket: VPP-1772
Type: fix

Signed-off-by: Elias Rudberg <elias.rudberg@bahnhof.net>
Change-Id: Ib7826e3c322e58b649e2d7f6053786da618a5e9e
src/plugins/dpdk/device/init.c