Add attribute packed to struct gpt_hdr to avoid unwanted padding at
the end of the struct to make it an integral number of "longs" on 64-bit architectures. The size of the struct must be 92, not 96.
This commit is contained in:
parent
8b1c546166
commit
d3f01d6a67
@ -46,7 +46,7 @@ struct gpt_hdr {
|
||||
uint32_t hdr_entries;
|
||||
uint32_t hdr_entsz;
|
||||
uint32_t hdr_crc_table;
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
struct gpt_ent {
|
||||
struct uuid ent_type;
|
||||
|
Loading…
Reference in New Issue
Block a user