Correct a gh_csum calculation used in debug output.
authorkrw <krw@openbsd.org>
Wed, 13 Apr 2022 15:32:33 +0000 (15:32 +0000)
committerkrw <krw@openbsd.org>
Wed, 13 Apr 2022 15:32:33 +0000 (15:32 +0000)
commit16c2114a7b1d34bdaa24c4eca7bd5e81f75736c0
tree423f7460d05d08e92c5bace30bc34d782f4fe5e8
parentb7307f09d9e0278e0ee48fd895c1976caf3fb8db
Correct a gh_csum calculation used in debug output.

Always calculate the GPT header checksum over gh_size bytes
(a.k.a. 92), not sizeof(struct gpt_header). Compilers in their
wisdom may pad the struct to a nice round size, e.g. 96 bytes.

No functional change.
sbin/fdisk/gpt.c