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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user