Fix bug in void array's assignment operator. r=scc

git-svn-id: svn://10.0.0.236/trunk@77071 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2000-08-24 09:26:58 +00:00
parent 904223c474
commit ab92ac6228

View File

@@ -96,6 +96,8 @@ nsVoidArray& nsVoidArray::operator=(const nsVoidArray& other)
SetArraySize(otherCount);
mImpl->mCount = otherCount;
SetArrayOwner(PR_TRUE);
nsCRT::memcpy(mImpl->mArray, other.mImpl->mArray, mImpl->mCount * sizeof(void*));
}
}
else {