summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-02-04 16:45:09 +0100
committerNeale Ranns <nranns@cisco.com>2020-02-07 17:57:18 +0000
commit84382ae45c2cf694ef7faf4a87d60c1546869301 (patch)
tree314538c1de6fb4340a5893a7304305832b13f148 /src
parent6e6ad64a4cc97f9f777891c0349bbb129ab03013 (diff)
fib: fix non-NULL terminated vectors in cli output
Type: fix Change-Id: Idbb3f29b13a5c84a8585c4299e51fdfc35f7e1ad Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_path.c2
-rw-r--r--src/vnet/fib/fib_path_list.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c
index a6404805eb6..f8950fa5a49 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -2819,7 +2819,7 @@ show_fib_path_command (vlib_main_t * vm,
FIB_PATH_FORMAT_FLAGS_NONE);
s = format(s, "\n children:");
s = fib_node_children_format(path->fp_node.fn_children, s);
- vlib_cli_output (vm, "%s", s);
+ vlib_cli_output (vm, "%v", s);
vec_free(s);
}
else
diff --git a/src/vnet/fib/fib_path_list.c b/src/vnet/fib/fib_path_list.c
index 07d54f4d4d6..2ad7c30e50a 100644
--- a/src/vnet/fib/fib_path_list.c
+++ b/src/vnet/fib/fib_path_list.c
@@ -1460,7 +1460,7 @@ show_fib_path_list_command (vlib_main_t * vm,
u8 *s = fib_path_list_format(pli, NULL);
s = format(s, "children:");
s = fib_node_children_format(path_list->fpl_node.fn_children, s);
- vlib_cli_output (vm, "%s", s);
+ vlib_cli_output (vm, "%v", s);
vec_free(s);
}
else