1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 06:16:45 +02:00

Dynamically allocate audio calls structure

This fixes a bug that caused a segfault when attempting to call a friend with a
friend number above the MAX_CALLS limit
This commit is contained in:
jfreegman
2017-11-20 07:02:56 -05:00
parent db7c9fe426
commit fe6a7074ea
4 changed files with 59 additions and 7 deletions

View File

@ -83,7 +83,7 @@ void terminate_video()
{
int i;
for (i = 0; i < MAX_CALLS; ++i) {
for (i = 0; i < CallControl.max_calls; ++i) {
Call *this_call = &CallControl.calls[i];
stop_video_transmission(this_call, i);