summaryrefslogtreecommitdiffstats
path: root/src/import/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/tools')
-rw-r--r--src/import/tools/imageProcs/p9_ipl_build.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/tools/imageProcs/p9_ipl_build.C b/src/import/tools/imageProcs/p9_ipl_build.C
index 495d17ce..61139e36 100644
--- a/src/import/tools/imageProcs/p9_ipl_build.C
+++ b/src/import/tools/imageProcs/p9_ipl_build.C
@@ -310,7 +310,8 @@ int ipl_build( char* i_fnSbeImage,
if(rc == IMGBUILD_SUCCESS)
{
// update our SBE image size to include the new block of rings
- sbeImageSize += l_blockSize;
+ // and make sure it's 8 byte aligned
+ sbeImageSize += ((l_blockSize + 7) / 8) * 8;
// grow our workspace
void* tmp = realloc(sbeImage, sbeImageSize);
OpenPOWER on IntegriCloud