diff --git a/src/plugins/augeas/augeas.c b/src/plugins/augeas/augeas.c index 5828dc2c4e7..561e095a6f8 100644 --- a/src/plugins/augeas/augeas.c +++ b/src/plugins/augeas/augeas.c @@ -325,9 +325,9 @@ static char * loadFile (FILE * fh) { content = elektraMalloc ((size_t) fileSize * sizeof (char) + 1); if (content == 0) return 0; - int readBytes = (int) fread (content, sizeof (char), (size_t) fileSize, fh); + size_t readBytes = fread (content, sizeof (char), (size_t) fileSize, fh); - if (feof (fh) || ferror (fh) || readBytes != fileSize) return 0; + if (feof (fh) || ferror (fh) || readBytes != (size_t) fileSize) return 0; /* null terminate the string, as fread doesn't do it */ content[fileSize] = 0;