From f2e1f13f6298a4d958806eeb7b93f6e7fd1a7a3b Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 22 Oct 2018 02:26:23 +0300 Subject: util.h: off by one in region end --- src/util.h | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3