From: Andrew J. Schorr Date: Fri, 29 May 2009 13:15:20 +0000 (-0400) Subject: [bgpd] 64-bit bugfix in community_del_val by Jeremy Jackson X-Git-Tag: frr-2.0-rc1~2334^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8178b2e156d2263015d7d981590a0899f2cb4c05;p=matthieu%2Ffrr.git [bgpd] 64-bit bugfix in community_del_val by Jeremy Jackson * 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 a05ea6c676..64c6810f6b 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--;