From c883fa7cdb19b0ae63e170d1c7c9a43484f070d5 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 7 Jun 2016 21:49:56 +0200 Subject: Fix missing null termination in DPDK EAL Args Change-Id: I8292628ad359a19e02ff79568d773ad2b1af51ec Signed-off-by: Damjan Marion --- vnet/vnet/devices/dpdk/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c index b49c405504c..63af5b345a3 100644 --- a/vnet/vnet/devices/dpdk/init.c +++ b/vnet/vnet/devices/dpdk/init.c @@ -1282,14 +1282,14 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input) { tmp = format (0, "-w%c", 0); vec_add1 (conf->eal_init_args, tmp); - tmp = format (0, "%U%c", format_vlib_pci_addr, &devconf->pci_addr); + tmp = format (0, "%U%c", format_vlib_pci_addr, &devconf->pci_addr, 0); vec_add1 (conf->eal_init_args, tmp); } else if (num_whitelisted == 0 && devconf->is_blacklisted != 0) { tmp = format (0, "-b%c", 0); vec_add1 (conf->eal_init_args, tmp); - tmp = format (0, "%U%c", format_vlib_pci_addr, &devconf->pci_addr); + tmp = format (0, "%U%c", format_vlib_pci_addr, &devconf->pci_addr, 0); vec_add1 (conf->eal_init_args, tmp); } })); -- cgit 1.2.3-korg