* grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
* grub-core/loader/i386/bsd.c: Likewise.
This commit is contained in:
parent
9fb0fd4f35
commit
02adbb932d
3 changed files with 8 additions and 3 deletions
|
@ -166,7 +166,7 @@ read_block_data (struct grub_lzopio *lzopio)
|
|||
|
||||
if (lzopio->ccheck_fun)
|
||||
{
|
||||
grub_uint64_t context[(lzopio->ccheck_fun->contextsize + 7) / 8];
|
||||
GRUB_PROPERLY_ALIGNED_ARRAY (context, lzopio->ccheck_fun->contextsize);
|
||||
|
||||
lzopio->ccheck_fun->init (context);
|
||||
lzopio->ccheck_fun->write (context, lzopio->block.cdata,
|
||||
|
@ -212,7 +212,7 @@ uncompress_block (struct grub_lzopio *lzopio)
|
|||
|
||||
if (lzopio->ucheck_fun)
|
||||
{
|
||||
grub_uint64_t context[(lzopio->ucheck_fun->contextsize + 7) / 8];
|
||||
GRUB_PROPERLY_ALIGNED_ARRAY (context, lzopio->ucheck_fun->contextsize);
|
||||
|
||||
lzopio->ucheck_fun->init (context);
|
||||
lzopio->ucheck_fun->write (context, lzopio->block.udata,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue