mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'msi-fix' of https://github.com/nurupo/InsertProjectNameHere
This commit is contained in:
commit
9a33e0f3e1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user