From: Paul Jakma Date: Tue, 21 Jul 2009 13:02:04 +0000 (+0100) Subject: [bgpd] fix typo made by paul in previous commit X-Git-Tag: frr-2.0-rc1~2243 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a294365797da8b72e51507cbf92dbc6940e5103b;p=mirror%2Ffrr.git [bgpd] fix typo made by paul in previous commit --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index d08cb1e17c..bc21f3c67b 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)