[bgpd] Small buffer overrun in bgp_clear_node_queue_init
* bgp_route.c: (bgp_clear_node_queue_init) fix buffer
overrun.
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 8dafd18..d08cb1e 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -2726,8 +2726,7 @@
static void
bgp_clear_node_queue_init (struct peer *peer)
{
-#define CLEAR_QUEUE_NAME_LEN 26 /* "clear 2001:123:123:123::1" */
- char wname[CLEAR_QUEUE_NAME_LEN];
+ char wname[sizeof("clear xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx"];
snprintf (wname, CLEAR_QUEUE_NAME_LEN, "clear %s", peer->host);
#undef CLEAR_QUEUE_NAME_LEN