Skip to content

Commit a16e85d

Browse files
committed
Work in progress
1 parent ce4b987 commit a16e85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/commonutils/FileUtils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ bool FileEndsInEol(const char* fileName, OsConfigLogHandle log)
168168

169169
char* ReadEndOfFile(const char* logFileName, unsigned int maxSize, OsConfigLogHandle log)
170170
{
171-
int size = 0;
171+
unsigned int size = 0;
172172
long offset = 0;
173173
size_t sizeRead = 0;
174174
FILE* file = NULL;
@@ -184,7 +184,7 @@ char* ReadEndOfFile(const char* logFileName, unsigned int maxSize, OsConfigLogHa
184184
if (LockFile(file, log))
185185
{
186186
fseek(file, 0, SEEK_END);
187-
size = (int)ftell(file);
187+
size = (unsigned int)ftell(file);
188188

189189
if (size > maxSize)
190190
{

0 commit comments

Comments
 (0)