From d9f5e01bd7ad792a3ddd51b5b9d61d543baf1ec9 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Wed, 21 May 2014 23:00:48 -0400 Subject: [PATCH] Fixed memory allocation type inconsistency --- toxav/msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toxav/msi.c b/toxav/msi.c index 9664e4af..6cb423cf 100755 --- a/toxav/msi.c +++ b/toxav/msi.c @@ -777,11 +777,11 @@ void *handle_timeout ( void *arg ) void add_peer( MSICall *call, int peer_id ) { if ( !call->peers ) { - call->peers = calloc(sizeof(int), 1); + call->peers = calloc(sizeof(uint32_t), 1); call->peer_count = 1; } else { call->peer_count ++; - call->peers = realloc( call->peers, sizeof(int) * call->peer_count); + call->peers = realloc( call->peers, sizeof(uint32_t) * call->peer_count); } call->peers[call->peer_count - 1] = peer_id;