dpdk: fix null-termination of strings 78/22378/2
authorElias Rudberg <elias.rudberg@bahnhof.net>
Thu, 12 Sep 2019 12:57:47 +0000 (14:57 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 30 Sep 2019 15:23:24 +0000 (15:23 +0000)
commit8e356191694e08463e3acaed1c39277c983d845e
treebee7663821586161dcf49f18c1b042937e62794f
parent003dd32489d768a8fc227da8b7218bc11126a592
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
(cherry picked from commit 7fd402163c221919446942c0784073a56bfd4f70)
src/plugins/dpdk/device/init.c