[bgpd] 64-bit bugfix in community_del_val by Jeremy Jackson <jerj@coplanar.net>
* bgpd/bgp_community.c: (community_del_val) Fix bug in memcpy that was
using the wrong size on architectures where a pointer is not 32 bits.
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index a05ea6c..64c6810 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -78,7 +78,7 @@
c = com->size -i -1;
if (c > 0)
- memcpy (com->val + i, com->val + (i + 1), c * sizeof (val));
+ memcpy (com->val + i, com->val + (i + 1), c * sizeof (*val));
com->size--;