mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-05 03:26:46 +02:00
Fixed segfault
This commit is contained in:
@ -473,7 +473,7 @@ static void friendlist_onAv(ToxWindow *self, ToxAv *av)
|
||||
{
|
||||
int id = toxav_get_peer_id(av, 0);
|
||||
/*id++;*/
|
||||
if ( id >= max_friends_index)
|
||||
if ( id != ErrorInternal && id >= max_friends_index)
|
||||
return;
|
||||
|
||||
Tox* m = toxav_get_tox(av);
|
||||
|
Reference in New Issue
Block a user