summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2024-04-08 11:54:01 +0200
committerFlorin Coras <florin.coras@gmail.com>2024-04-11 01:06:20 +0000
commita1d20405b7965eaad93809c283c1a28b2f08f6f2 (patch)
treee322b762239be3f41c0872361fe6cefe3929706d /src/plugins
parent11f7965350e78ebe12442f8b165bfc721f3c39e2 (diff)
stn: fix non-NULL terminated string overflow
Type: fix Change-Id: I9d7e6dd099cf9f4b7f6bb06d9e8a17fac7d7e772 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/stn/stn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/stn/stn.c b/src/plugins/stn/stn.c
index 6e789feca5d..c0ac0d0b3a6 100644
--- a/src/plugins/stn/stn.c
+++ b/src/plugins/stn/stn.c
@@ -49,7 +49,7 @@ format_stn_rule (u8 * s, va_list * args)
s = format (s, "%Uiface: %U (%d)\n", format_white_space, indent,
format_vnet_sw_if_index_name, vnet_get_main(), r->sw_if_index,
r->sw_if_index);
- s = format (s, "%Unext_node: %s (%d)", format_white_space, indent,
+ s = format (s, "%Unext_node: %v (%d)", format_white_space, indent,
next_node->name, next_node->index);
return s;
}