summaryrefslogtreecommitdiff
path: root/util/cbfstool/cse_serger.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/cse_serger.c')
-rw-r--r--util/cbfstool/cse_serger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/cse_serger.c b/util/cbfstool/cse_serger.c
index 006a01e9be..9d74a120c3 100644
--- a/util/cbfstool/cse_serger.c
+++ b/util/cbfstool/cse_serger.c
@@ -647,7 +647,7 @@ static size_t get_cse_region_end_offset(void)
size_t end_offset;
for (size_t i = 0; i < BP_TOTAL; i++) {
- end_offset = region_end(&params.layout_regions[i]);
+ end_offset = region_last(&params.layout_regions[i]) + 1;
if (end_offset > offset)
offset = end_offset;
}