aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p2p/p2p_group.c')
-rw-r--r--src/p2p/p2p_group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/p2p_group.c b/src/p2p/p2p_group.c
index 8d4a3cb..5ff2627 100644
--- a/src/p2p/p2p_group.c
+++ b/src/p2p/p2p_group.c
@@ -52,8 +52,8 @@ struct p2p_group * p2p_group_init(struct p2p_data *p2p,
if (group == NULL)
return NULL;
- groups = os_realloc(p2p->groups, (p2p->num_groups + 1) *
- sizeof(struct p2p_group *));
+ groups = os_realloc_array(p2p->groups, p2p->num_groups + 1,
+ sizeof(struct p2p_group *));
if (groups == NULL) {
os_free(group);
return NULL;