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