Use nitems() of source and destination partition arrays
authorkrw <krw@openbsd.org>
Mon, 6 Mar 2023 13:24:40 +0000 (13:24 +0000)
committerkrw <krw@openbsd.org>
Mon, 6 Mar 2023 13:24:40 +0000 (13:24 +0000)
commitc54314743643502f2d8c9cd9f7ca4a7a2676c5cd
tree08a2449bcf4cf5acc740666e2914ad5ec253585d
parent6d2bd5bdfff5d28608888e4be831134d394d15dc
Use nitems() of source and destination partition arrays
rather than assuming they are the same size. Zero
destination entries when no source partition available.

No intentional functional change.
sbin/fdisk/gpt.c
sbin/fdisk/mbr.c