mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 15:43:24 +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);
|
||||
|
||||
fd = fopen(path, "w");
|
||||
fd = fopen(path, "wb");
|
||||
|
||||
if (fd == NULL) {
|
||||
free(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user