1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-16 21:06:36 +01:00

re-implement avatar setting

This commit is contained in:
Jfreegman
2015-04-04 03:26:38 -04:00
parent 523f205646
commit dd9186e834
12 changed files with 367 additions and 107 deletions

View File

@@ -124,6 +124,7 @@ void exit_toxic_success(Tox *m)
store_data(m, DATA_FILE);
memset(&user_password, 0, sizeof(struct user_password));
kill_all_windows(m);
kill_all_file_transfers(m);
terminate_notify();
#ifdef AUDIO
@@ -506,7 +507,7 @@ int store_data(Tox *m, const char *path)
fclose(fp);
return -1;
}
} else {
} else { /* data will not be encrypted */
if (fwrite(data, data_len, 1, fp) != 1) {
fclose(fp);
return -1;