diff --git a/src/main.c b/src/main.c index b599e63..e42aee8 100644 --- a/src/main.c +++ b/src/main.c @@ -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);