mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:03:02 +01:00
fix bug
This commit is contained in:
parent
3470a5eef7
commit
34511ada02
@ -41,13 +41,14 @@ int index_name_cmp(const void *n1, const void *n2)
|
||||
void sort_friendlist_index(void)
|
||||
{
|
||||
int i;
|
||||
int n = 0;
|
||||
|
||||
for (i = 0; i < max_friends_index; ++i) {
|
||||
if (friends[i].active)
|
||||
friendlist_index[i] = friends[i].num;
|
||||
friendlist_index[n++] = friends[i].num;
|
||||
}
|
||||
|
||||
qsort(friendlist_index, num_friends, sizeof(int), index_name_cmp);
|
||||
//qsort(friendlist_index, num_friends, sizeof(int), index_name_cmp);
|
||||
}
|
||||
|
||||
static void friendlist_onMessage(ToxWindow *self, Tox *m, int num, uint8_t *str, uint16_t len)
|
||||
|
Loading…
Reference in New Issue
Block a user