commit 89bf5afe2079cbe188e9fe66e95db0ea6a74ba86 Author: Andriy Stepanov Date: Mon Apr 25 20:05:07 2011 +0400 ALT: calculate Partition table header size in right way diff --git a/plugins/gpt/gpt.h b/plugins/gpt/gpt.h index 6e04f73..7551984 100644 --- a/plugins/gpt/gpt.h +++ b/plugins/gpt/gpt.h @@ -142,7 +142,7 @@ typedef struct _gpt_header_s { u_int32_t ptable_count; // number of entries in the partition table u_int32_t ptable_entry_size; // size of a partition table entry u_int32_t ptable_crc; // CRC of the partition table -} gpt_header; +} __attribute__((packed)) gpt_header; // gpt partition types