Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vlib: fix vector-as-C-string overflow
[vpp.git]
/
src
/
vlib
/
node_cli.c
diff --git
a/src/vlib/node_cli.c
b/src/vlib/node_cli.c
index
32c6c1a
..
bf18702
100644
(file)
--- 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);
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);
n->name, type_str, format_vlib_node_state, vm, n,
n->index, s);
vec_reset_length (s);