1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-06 20:46:34 +01:00

use 64-bit off_t for file sizes

This commit is contained in:
Jfreegman
2014-09-24 14:23:08 -04:00
parent 893e88294b
commit a432d733d7
7 changed files with 9 additions and 9 deletions

View File

@@ -629,7 +629,7 @@ static void load_data(Tox *m, char *path)
FILE *fd;
if ((fd = fopen(path, "rb")) != NULL) {
uint64_t len = file_size(path);
off_t len = file_size(path);
if (len == -1) {
fclose(fd);