mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:03:27 +01:00
Fixed possible bug.
This commit is contained in:
parent
92ff51f335
commit
6320ea756f
@ -271,7 +271,7 @@ int store_data(Tox *m, char *path)
|
|||||||
|
|
||||||
tox_save(m, buf);
|
tox_save(m, buf);
|
||||||
|
|
||||||
fd = fopen(path, "w");
|
fd = fopen(path, "wb");
|
||||||
|
|
||||||
if (fd == NULL) {
|
if (fd == NULL) {
|
||||||
free(buf);
|
free(buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user