From a294365797da8b72e51507cbf92dbc6940e5103b Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Tue, 21 Jul 2009 14:02:04 +0100 Subject: [bgpd] fix typo made by paul in previous commit --- bgpd/bgp_route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index d08cb1e1..bc21f3c6 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2726,9 +2726,9 @@ bgp_clear_node_complete (struct work_queue *wq) static void bgp_clear_node_queue_init (struct peer *peer) { - char wname[sizeof("clear xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx"]; + char wname[sizeof("clear xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")]; - snprintf (wname, CLEAR_QUEUE_NAME_LEN, "clear %s", peer->host); + snprintf (wname, sizeof(wname), "clear %s", peer->host); #undef CLEAR_QUEUE_NAME_LEN if ( (peer->clear_node_queue = work_queue_new (bm->master, wname)) == NULL) -- cgit v1.2.1