diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/import/chips/p9/xip/p9_xip_image.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/import/chips/p9/xip/p9_xip_image.h b/src/import/chips/p9/xip/p9_xip_image.h index cc06ffd05..6c9ff69db 100644 --- a/src/import/chips/p9/xip/p9_xip_image.h +++ b/src/import/chips/p9/xip/p9_xip_image.h @@ -108,8 +108,8 @@ typedef enum { /// Applications can use this macro to safely index the array of section /// names. -#define P9_XIP_SECTION_NAME(var, n) \ - ((((n) < 0) || ((n) > (int)(sizeof(var) / sizeof(char*)))) ? \ +#define P9_XIP_SECTION_NAME(var, n) \ + ((((n) < 0) || ((n) >= (int)(sizeof(var) / sizeof(char*)))) ? \ "" : var[n]) #endif /* __ASSEMBLER__ */ @@ -408,10 +408,10 @@ typedef struct char iv_buildUser[16]; /// Build host, generated by `hostname` - char iv_buildHost[24]; + char iv_buildHost[40]; /// Reserved for future expansion - char iv_reservedChar[24]; + char iv_reservedChar[8]; } P9XipHeader; |