mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 03:16:36 +02:00
Fixed "fread() failed" bug on windows.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user