Ugly hack to fix a memory corruption problem
This commit is contained in:
@@ -98,7 +98,7 @@ static int recsize(int lgsz)
|
|||||||
{
|
{
|
||||||
HashRec hr;
|
HashRec hr;
|
||||||
hr.lgsz = lgsz;
|
hr.lgsz = lgsz;
|
||||||
return (int)((char*)&TAB(&hr)[POW2(lgsz+1)] - (char*)&hr);
|
return (int)((char*)&TAB(&hr)[POW2(lgsz+1)] - (char*)&hr) + sizeof(naRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HashRec* resize(struct naHash* hash)
|
static HashRec* resize(struct naHash* hash)
|
||||||
|
|||||||
Reference in New Issue
Block a user