diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/metaentry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metaentry.c b/src/metaentry.c index 891e0c4..978ef72 100644 --- a/src/metaentry.c +++ b/src/metaentry.c @@ -500,7 +500,7 @@ mentries_fromfile(struct metahash **mhash, const char *path) } ptr += VERSIONLEN; - while (ptr < mmapstart + sbuf.st_size) { + while (ptr < max) { if (*ptr == '\0') { msg(MSG_CRITICAL, "Invalid characters in file %s\n", path); |