* grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.

* grub-core/loader/i386/bsd.c: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-28 15:18:50 +02:00
parent 9fb0fd4f35
commit 02adbb932d
3 changed files with 8 additions and 3 deletions

View file

@ -1045,7 +1045,7 @@ grub_netbsd_add_boot_disk_and_wedge (void)
struct grub_partition_bsd_disk_label label;
} buf;
grub_uint8_t *hash;
grub_uint64_t ctx[(GRUB_MD_MD5->contextsize + 7) / 8];
GRUB_PROPERLY_ALIGNED_ARRAY (ctx, GRUB_MD_MD5->contextsize);
dev = grub_device_open (0);
if (! (dev && dev->disk && dev->disk->partition))