1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 17:37:46 +02:00

Fixed segfault

This commit is contained in:
mannol 2014-03-12 00:25:13 +01:00
parent ed3e9b476d
commit b210068c1d
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include "chat_commands.h"
#include "global_commands.h"
#include "toxic_windows.h"
#include <curses.h>
#include <AL/al.h>
#include <AL/alc.h>

View File

@ -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);