summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-22 02:26:23 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-22 02:27:20 +0300
commitf2e1f13f6298a4d958806eeb7b93f6e7fd1a7a3b (patch)
tree09e6add24a0a7e2728553e8000a25ce0bcf49c5e
parent86e6d7daaa1ed9bcd81326be91caa0d206daa4e5 (diff)
util.h: off by one in region end
-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;
}