1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-24 02:23:25 +01:00

Merge pull request #92 from mannol1/master

Fixed segfault
This commit is contained in:
mannol1 2014-03-12 00:41:43 +01:00
commit e6d307f65a
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);