]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 11 May 2013 07:59:59 +0000 (09:59 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 11 May 2013 07:59:59 +0000 (09:59 +0200)
attribute since structure is not necessarily aligned.

ChangeLog
grub-core/fs/hfspluscomp.c

index 28df324686ac628a53884a15e58bf2903f324fb6..97b773d82d434a0a0d8be75b05fdb7c2e55d1f36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
+       attribute since structure is not necessarily aligned.
+
 2013-05-11  Andrey Borzenkov <arvidjaar@gmail.com>
 
        * docs/grub.texi (Device syntax): Clarify description of network
index b3434418c4182a1448ce5826d1f12e8970f412c8..13e4671e67f8f6cd4d599de431fc574d343bf124 100644 (file)
@@ -74,7 +74,7 @@ struct grub_hfsplus_compress_attr
   grub_uint32_t type;
   grub_uint32_t uncompressed_inline_size;
   grub_uint32_t always_0;
-};
+} __attribute__ ((packed));
 
 enum
   {