summaryrefslogtreecommitdiff
path: root/bgpd/bgp_community.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <schorr@ti82.(none)>2009-05-29 09:15:20 -0400
committerAndrew J. Schorr <schorr@ti82.(none)>2009-05-29 09:15:20 -0400
commit8178b2e156d2263015d7d981590a0899f2cb4c05 (patch)
tree3dcf31e5c9a3f094c0f2b24a9a3f552ca51d1d2c /bgpd/bgp_community.c
parent5012bc3d217f4fff5759745ee689869fb5224b41 (diff)
[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.
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r--bgpd/bgp_community.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index a05ea6c6..64c6810f 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -78,7 +78,7 @@ community_del_val (struct community *com, u_int32_t *val)
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--;