1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 01:03:02 +01:00

Fixed "fread() failed" bug on windows.

This commit is contained in:
irungentoo 2013-09-24 15:23:09 -04:00
parent 04a44b7cdb
commit 92ff51f335

View File

@ -298,7 +298,7 @@ static void load_data(Tox *m, char *path)
size_t len;
uint8_t *buf;
if ((fd = fopen(path, "r")) != NULL) {
if ((fd = fopen(path, "rb")) != NULL) {
fseek(fd, 0, SEEK_END);
len = ftell(fd);
fseek(fd, 0, SEEK_SET);