[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.
This commit is contained in:
Andrew J. Schorr 2009-05-29 09:15:20 -04:00
parent 5012bc3d21
commit 8178b2e156

View File

@ -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--;