summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/metaentry.c2
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);