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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user