From 6bbd8ae90cdbeaa073c1c8dbaf8f6e831b30c599 Mon Sep 17 00:00:00 2001 From: krw Date: Sat, 12 Jun 2021 20:16:26 +0000 Subject: [PATCH] Ooops. Managed to typo 'gh' instead of 'gp' when copying code from GPT_init() into init_gh(). --- sbin/fdisk/gpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/fdisk/gpt.c b/sbin/fdisk/gpt.c index 352c88ebd7f..64b7ce3fd02 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.25 2021/06/12 17:49:00 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.26 2021/06/12 20:16:26 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller * Copyright (c) 2015 Kenneth R Westerback @@ -379,7 +379,7 @@ init_gh(void) memcpy(&oldgh, &gh, sizeof(oldgh)); - needed = sizeof(gh) / secsize + 2; + needed = sizeof(gp) / secsize + 2; /* Start usable LBA area on 64 sector boundary. */ if (needed % 64) -- 2.20.1