summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 0479680..c097321 100644
--- a/src/util.h
+++ b/src/util.h
@@ -26,6 +26,7 @@ region_parse(struct region *region, const char *line)
warnx("failed to parse mapping:\n%s", line);
return false;
}
+ region->end = (region->end > 0 ? region->end - 1 : 0);
return true;
}