From 93dbb2410345066a5153e3b33668cf223bbbb2df Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 7 Jun 2020 20:46:29 +0200 Subject: [PATCH] ftell return signed --- client/src/fileutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/fileutils.c b/client/src/fileutils.c index 6095132aa..c27dc0a15 100644 --- a/client/src/fileutils.c +++ b/client/src/fileutils.c @@ -1143,7 +1143,8 @@ int loadFileDICTIONARYEx(const char *preferredName, void *data, size_t maxdatale // read file while (!feof(f)) { - size_t filepos = ftell(f); + long filepos = ftell(f); + if (!fgets(line, sizeof(line), f)) { if (endFilePosition) *endFilePosition = 0;