blob: 6e5e13c0ead1491a0e620f99045ea53f96c2efe7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
See-Also: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31923
--- parted-3.2/libparted/labels/bsd.c.old 2014-06-15 18:17:43.000000000 +0000
+++ parted-3.2/libparted/labels/bsd.c 2019-08-05 05:48:52.914401379 +0000
@@ -364,7 +364,7 @@
max_part = i;
}
- label->d_npartitions = PED_CPU_TO_LE16 (max_part) + 1;
+ label->d_npartitions = PED_CPU_TO_LE16 (max_part + 1);
label->d_checksum = xbsd_dkcksum (label);
alpha_bootblock_checksum (bsd_specific->boot_code);
|