From: teodor Date: Thu, 10 Jul 2008 12:08:17 +0000 (+0000) Subject: Fix memory aligment X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=297201c3bf3104b044feeb349978b9e1c070c5ae;p=tedtools.git Fix memory aligment --- 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;