From 753371af57b15d720e9f664d29e6b8a024a9be91 Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 13 Jul 2021 11:18:25 +0000 Subject: [PATCH] Replace a stray use of letoh64() on gh_part_num and gh_part_size, which are uint32_t fields, with letoh32(). --- 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 0ad0585136b..19a2a411eb2 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.40 2021/07/12 22:18:54 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.41 2021/07/13 11:18:25 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller * Copyright (c) 2015 Kenneth R Westerback @@ -500,7 +500,7 @@ GPT_write(void) /* * XXX Assume size of gp is multiple of sector size. */ - gpbytes = letoh64(gh.gh_part_num) * letoh64(gh.gh_part_size); + gpbytes = letoh32(gh.gh_part_num) * letoh32(gh.gh_part_size); prigh = GPTSECTOR; prigp = prigh + 1; -- 2.20.1