aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-16 14:54:24 +0200
committerDamjan Marion <dmarion@me.com>2019-10-16 18:38:02 +0000
commit94e4dea15ac704a40617fe8bcfcce74e2d890856 (patch)
tree95e2d4b50c4337a4e6b7781275b2e13705c96477 /src
parent153727743b9193f39410bc8445e09f1b93cbd07f (diff)
cdp: fix non-null terminated vector use
Type: fix Change-Id: I31e5d9d9e93339eb789aed20996f326b085c22a9 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/cdp/cdp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cdp/cdp_input.c b/src/plugins/cdp/cdp_input.c
index a6da0f67ac0..e52361b0267 100644
--- a/src/plugins/cdp/cdp_input.c
+++ b/src/plugins/cdp/cdp_input.c
@@ -444,7 +444,7 @@ format_cdp_neighbors (u8 * s, va_list * va)
hw = vnet_get_sup_hw_interface (vnm, n->sw_if_index);
if (n->disabled == 0)
- s = format (s, "%=25s %=25s %=25s %=10.1f\n",
+ s = format (s, "%=25v %=25s %=25s %=10.1f\n",
hw->name, n->device_name, n->port_id,
n->last_heard);
}));