From 297201c3bf3104b044feeb349978b9e1c070c5ae Mon Sep 17 00:00:00 2001 From: teodor Date: Thu, 10 Jul 2008 12:08:17 +0000 Subject: [PATCH] Fix memory aligment --- sfxstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfxstr.c b/sfxstr.c index 1a1bb8e..b94f576 100644 --- a/sfxstr.c +++ b/sfxstr.c @@ -1200,7 +1200,7 @@ SFSInitFromDump(SFSTree *info, void *pointer, u_int64_t size, void **extradata, tlog(TL_CRIT|TL_EXIT, "sizeof(Opaque) mismatch"); if ( dh->headersize != SFSTDHSZ ) tlog(TL_CRIT|TL_EXIT, "Tree's header size mismatch (should be %d but %d bytes)", SFSTDHSZ, dh->headersize); - if ( size && size != dh->totalen + SFSTDHSZ + dh->extrasize ) + if ( size && size != dh->totalen + SFSTDHSZ + MAXALIGN(dh->extrasize) ) tlog(TL_CRIT|TL_EXIT, "Memory size mismatch (should be %d but %d bytes)", dh->totalen + SFSTDHSZ + dh->extrasize , size); info->totalen = dh->totalen; -- 2.46.1