]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mkimg: Correct an off by one error in the PMBR size
authormanu <manu@FreeBSD.org>
Mon, 29 May 2017 12:51:02 +0000 (12:51 +0000)
committermanu <manu@FreeBSD.org>
Mon, 29 May 2017 12:51:02 +0000 (12:51 +0000)
commit9dc3b7708f433a25e645a6064aa4a30199b87ea4
treedbbcea438f31bc3ef60ab0926e38e682169aedec
parent85830f137ab8f31c5e534222f795d9eaf3353398
mkimg: Correct an off by one error in the PMBR size

The PMBR last sector should be number of sector - 1 (As stated in UEFI Spec
2.6 page 118 table 17).
This fixes warning printed by linux tools like parted or fdisk.

Sponsored by: Gandi.net
usr.bin/mkimg/gpt.c