diff options
-rw-r--r-- | bgpd/bgp_community.c | 2 |
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--; |