Fix initialization of string in otp_keystore tag (fix build error)

Emerged in newer gcc15, due to -Wunterminated-string-initialization
added to -Wall
pull/772/head
Daniele Lacamera 2026-05-06 10:22:59 +02:00
parent 9a667f2a75
commit d1df8b2df0
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ struct KEYSTORE_HDR_PACKED wolfBoot_otp_hdr {
uint32_t version;
};
static const char KEYSTORE_HDR_MAGIC[8] = "WOLFBOOT";
static const char KEYSTORE_HDR_MAGIC[8] =
{'W', 'O', 'L', 'F', 'B', 'O', 'O', 'T'};
#define KEYSTORE_MAX_PUBKEYS \
((OTP_SIZE - OTP_UDS_STORAGE_SIZE - OTP_HDR_SIZE) / SIZEOF_KEYSTORE_SLOT)