From daa4fbd4770c1a1987e934470da6cb38fa2b97b7 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 166fd4b55..1142317e3 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; enum grub_gpt_part_attr_offset