Skip to content

Commit d1df8b2

Browse files
committed
Fix initialization of string in otp_keystore tag (fix build error)
Emerged in newer gcc15, due to -Wunterminated-string-initialization added to -Wall
1 parent 9a667f2 commit d1df8b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/otp_keystore.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ struct KEYSTORE_HDR_PACKED wolfBoot_otp_hdr {
5454
uint32_t version;
5555
};
5656

57-
static const char KEYSTORE_HDR_MAGIC[8] = "WOLFBOOT";
57+
static const char KEYSTORE_HDR_MAGIC[8] =
58+
{'W', 'O', 'L', 'F', 'B', 'O', 'O', 'T'};
5859

5960
#define KEYSTORE_MAX_PUBKEYS \
6061
((OTP_SIZE - OTP_UDS_STORAGE_SIZE - OTP_HDR_SIZE) / SIZEOF_KEYSTORE_SLOT)

0 commit comments

Comments
 (0)