summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibPartition/EBRPartitionTable.cpp')
-rw-r--r--Userland/Libraries/LibPartition/EBRPartitionTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPartition/EBRPartitionTable.cpp b/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
index 3335a1516d..74d873b51b 100644
--- a/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
+++ b/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
@@ -77,7 +77,7 @@ EBRPartitionTable::EBRPartitionTable(NonnullRefPtr<Core::File> device)
if (entry.offset == 0x00) {
continue;
}
- MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length), entry.type));
+ MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length) - 1, entry.type));
}
}