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

fix segfault

This commit is contained in:
Jfreegman 2014-09-29 01:30:22 -04:00
parent 33cfca7ecc
commit 6248baf98b
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ void kill_friendlist(void)
{
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)
free(Friends.list[i].group_invite.key);
}

View File

@ -1062,7 +1062,7 @@ int main(int argc, char *argv[])
print_init_messages(prompt);
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];
snprintf(avatarstr, sizeof(avatarstr), "/avatar \"%s\"", user_settings->avatar_path);
execute(prompt->chatwin->history, prompt, m, avatarstr, GLOBAL_COMMAND_MODE);