Skip to content

Commit d69086c

Browse files
authored
Merge pull request #772 from danielinux/otp-fix-string
Fix initialization of string in otp_keystore tag
2 parents 9a667f2 + d1df8b2 commit d69086c

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)