1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 13:16:36 +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

@ -156,9 +156,9 @@ void load_chat_history(ToxWindow *self, struct chatlog *log)
if (log->file == NULL)
return;
uint64_t sz = file_size(log->path);
off_t sz = file_size(log->path);
if (sz <= 0)
if (sz == 0)
return;
char *hstbuf = malloc(sz);