1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-06 09:26:44 +02: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

@ -224,7 +224,7 @@ void cmd_sendfile(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
return;
}
uint64_t filesize = file_size(path);
off_t filesize = file_size(path);
if (filesize == -1) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "File corrupt.");