From 6320ea756fa5798df6cac0dde49aff53ad9055ae Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 24 Sep 2013 17:47:42 -0400 Subject: [PATCH] Fixed possible bug. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);