From d424d55607bdfbbd0f5f0a220ea582ff88106931 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 27 Nov 2014 14:54:27 -0800 Subject: [PATCH] gpt: switch partition names to a 16 bit type In UEFI/GPT strings are UTF-16 so use a uint16 to make dealing with the string practical. --- include/grub/gpt_partition.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/gpt_partition.h b/include/grub/gpt_partition.h index dc1bcca..a44c0d5 100644 --- a/include/grub/gpt_partition.h +++ b/include/grub/gpt_partition.h @@ -92,7 +92,7 @@ struct grub_gpt_partentry grub_uint64_t start; grub_uint64_t end; grub_uint64_t attrib; - char name[72]; + grub_uint16_t name[36]; } GRUB_PACKED __attribute__ ((aligned(8))); enum grub_gpt_part_attr_offset -- 2.21.3