aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/node_cli.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-12-16 15:49:47 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-12 07:43:14 +0000
commita699926a0dde50586510cd697b4cafc6cc51ab9e (patch)
tree9aaf25e1a8a97beffd0b657bedeeb0e7664faadb /src/vlib/node_cli.c
parentd8e41e7810d453396c49321d28d0d73b3b50c09b (diff)
vlib: fix vector-as-C-string overflow
Type: fix Change-Id: If0419ff1a82d45e5b3326973008e1b9feb290c5a Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit 62d9fda8e474f87459c6e24d13b09f7bfec146f3)
Diffstat (limited to 'src/vlib/node_cli.c')
-rw-r--r--src/vlib/node_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/node_cli.c b/src/vlib/node_cli.c
index 32c6c1a4ef9..bf18702d582 100644
--- a/src/vlib/node_cli.c
+++ b/src/vlib/node_cli.c
@@ -606,7 +606,7 @@ show_node (vlib_main_t * vm, unformat_input_t * input,
if (n->sibling_of)
s = format (s, ", sibling-of %s", n->sibling_of);
- vlib_cli_output (vm, "node %s, type %s, state %U, index %d%v\n",
+ vlib_cli_output (vm, "node %v, type %s, state %U, index %d%v\n",
n->name, type_str, format_vlib_node_state, vm, n,
n->index, s);
vec_reset_length (s);