diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-22 02:26:23 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-22 02:27:20 +0300 |
commit | f2e1f13f6298a4d958806eeb7b93f6e7fd1a7a3b (patch) | |
tree | 09e6add24a0a7e2728553e8000a25ce0bcf49c5e | |
parent | 86e6d7daaa1ed9bcd81326be91caa0d206daa4e5 (diff) |
util.h: off by one in region end
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |