diff options
author | 2019-10-16 14:54:24 +0200 | |
---|---|---|
committer | 2019-10-27 10:12:27 +0000 | |
commit | f5f41e5f13710eb293f0f04a74926c91eabde0ea (patch) | |
tree | 67f7ed7388dce3e494c7ca8ebe42a9f1b7d0800a /src/plugins/cdp/cdp_input.c | |
parent | de6453aa635bf466c9e38da8e8c0db1855ee9ddf (diff) |
misc: (cdp) fix non-null terminated vector use
Type: fix
Change-Id: I31e5d9d9e93339eb789aed20996f326b085c22a9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 94e4dea15ac704a40617fe8bcfcce74e2d890856)
Diffstat (limited to 'src/plugins/cdp/cdp_input.c')
-rw-r--r-- | src/plugins/cdp/cdp_input.c | 2 |
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); })); |