diff --git a/src/security/tpm/tpm1_log_serialized.h b/src/security/tpm/tpm1_log_serialized.h index a8b7a60798..7c7d51a45a 100644 --- a/src/security/tpm/tpm1_log_serialized.h +++ b/src/security/tpm/tpm1_log_serialized.h @@ -41,7 +41,7 @@ struct tpm_1_log_table { struct spec_id_event_data spec_id; struct tpm_1_vendor vendor; - struct tpm_1_log_entry entries[0]; /* Variable number of entries */ + struct tpm_1_log_entry entries[]; /* Variable number of entries */ } __packed; #endif diff --git a/src/security/tpm/tpm2_log_serialized.h b/src/security/tpm/tpm2_log_serialized.h index 2b4e43c635..a11a2f6a7e 100644 --- a/src/security/tpm/tpm2_log_serialized.h +++ b/src/security/tpm/tpm2_log_serialized.h @@ -64,7 +64,7 @@ struct tpm_2_log_table { struct tpm_digest_sizes digest_sizes[1]; uint8_t vendor_info_size; struct tpm_2_vendor vendor; - struct tpm_2_log_entry entries[0]; /* Variable number of entries */ + struct tpm_2_log_entry entries[]; /* Variable number of entries */ } __packed; #endif