projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1ce28ee
)
fix inaccurace memory count
author
teodor
<teodor>
Mon, 7 Jul 2008 16:56:22 +0000
(16:56 +0000)
committer
teodor
<teodor>
Mon, 7 Jul 2008 16:56:22 +0000
(16:56 +0000)
sfxstr.c
patch
|
blob
|
history
diff --git
a/sfxstr.c
b/sfxstr.c
index
0697ba3
..
3429470
100644
(file)
--- a/
sfxstr.c
+++ b/
sfxstr.c
@@
-1194,8
+1194,8
@@
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);
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 )
- tlog(TL_CRIT|TL_EXIT, "Memory size mismatch (should be %d but %d bytes)", dh->totalen + SFSTDHSZ, size);
+ if ( size && size != dh->totalen + SFSTDHSZ
+ 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;
info->nnodes = dh->nnodes;
info->totalen = dh->totalen;
info->nnodes = dh->nnodes;