mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 02:43:02 +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