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:
@ -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);
|
||||
|
Reference in New Issue
Block a user