summaryrefslogtreecommitdiff
path: root/src/util/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/map.c')
-rw-r--r--src/util/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/map.c b/src/util/map.c
index 35e1b49..cd2da42 100644
--- a/src/util/map.c
+++ b/src/util/map.c
@@ -25,8 +25,8 @@ struct map *open_map(const char *fname) {
}
struct map *res = calloc(1, sizeof(struct map));
-
res->addr = addr;
+ res->end = addr + sb.st_size;
res->sb = sb;
res->fd = fd;
return res;