mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 16:43:27 +01:00
fix segfault
This commit is contained in:
parent
33cfca7ecc
commit
6248baf98b
@ -114,7 +114,7 @@ void kill_friendlist(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i <= Friends.max_idx; ++i) {
|
for (i = 0; i < Friends.max_idx; ++i) {
|
||||||
if (Friends.list[i].active && Friends.list[i].group_invite.key != NULL)
|
if (Friends.list[i].active && Friends.list[i].group_invite.key != NULL)
|
||||||
free(Friends.list[i].group_invite.key);
|
free(Friends.list[i].group_invite.key);
|
||||||
}
|
}
|
||||||
|
@ -1062,7 +1062,7 @@ int main(int argc, char *argv[])
|
|||||||
print_init_messages(prompt);
|
print_init_messages(prompt);
|
||||||
cleanup_init_messages();
|
cleanup_init_messages();
|
||||||
|
|
||||||
/* set user avatar from config file. if no valid path is supplied tox_unset_avatar is called */
|
/* set user avatar from config file. if no path is supplied tox_unset_avatar is called */
|
||||||
char avatarstr[MAX_STR_SIZE];
|
char avatarstr[MAX_STR_SIZE];
|
||||||
snprintf(avatarstr, sizeof(avatarstr), "/avatar \"%s\"", user_settings->avatar_path);
|
snprintf(avatarstr, sizeof(avatarstr), "/avatar \"%s\"", user_settings->avatar_path);
|
||||||
execute(prompt->chatwin->history, prompt, m, avatarstr, GLOBAL_COMMAND_MODE);
|
execute(prompt->chatwin->history, prompt, m, avatarstr, GLOBAL_COMMAND_MODE);
|
||||||
|
Loading…
Reference in New Issue
Block a user