--- embedaddon/quagga/bgpd/bgp_community.c 2013/07/21 23:54:37 1.1.1.2 +++ embedaddon/quagga/bgpd/bgp_community.c 2016/11/02 10:09:10 1.1.1.3 @@ -78,7 +78,7 @@ community_del_val (struct community *com, u_int32_t *v c = com->size -i -1; if (c > 0) - memcpy (com->val + i, com->val + (i + 1), c * sizeof (*val)); + memmove (com->val + i, com->val + (i + 1), c * sizeof (*val)); com->size--; @@ -144,7 +144,7 @@ community_include (struct community *com, u_int32_t va return 0; } -static u_int32_t +u_int32_t community_val_get (struct community *com, int i) { u_char *p;