Merge commit '8eb4892b4976e82e020d0e30dcf8f0705b76bb4e'
This commit is contained in:
2
external/toxcore/c-toxcore/toxav/msi.c
vendored
2
external/toxcore/c-toxcore/toxav/msi.c
vendored
@ -587,7 +587,7 @@ static MSICall *new_call(MSISession *session, uint32_t friend_number)
|
||||
session->calls_tail = friend_number;
|
||||
session->calls_head = friend_number;
|
||||
} else if (session->calls_tail < friend_number) { /* Appending */
|
||||
MSICall **tmp = (MSICall **)realloc(session->calls, sizeof(MSICall *) * (friend_number + 1));
|
||||
MSICall **tmp = (MSICall **)realloc(session->calls, (friend_number + 1) * sizeof(MSICall *));
|
||||
|
||||
if (tmp == nullptr) {
|
||||
free(rc);
|
||||
|
Reference in New Issue
Block a user