remove memcpy function from nsCRT, eliminate 2 new nsCRT::memcpy callers

and fix up alighment problems from previous patch, bug 118135, sr=brenda r=dp


git-svn-id: svn://10.0.0.236/trunk@112913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cathleen%netscape.com
2002-01-26 00:04:45 +00:00
parent 3fc0490294
commit 3fcee4d2a1
20 changed files with 41 additions and 45 deletions

View File

@@ -1085,8 +1085,8 @@ HTMLAttributesImpl::UnsetAttributeName(nsIAtom* aAttrName, PRBool& aFound)
memcpy(mNameBuffer, mAttrNames, index * sizeof(nsIAtom*));
}
if (index < mAttrCount) {
memcpy(&(mNameBuffer[index]), &(mAttrNames[index + 1]),
(mAttrCount - index) * sizeof(nsIAtom*));
memcpy(&mNameBuffer[index], &mAttrNames[index + 1],
(mAttrCount - index) * sizeof(nsIAtom*));
}
delete [] mAttrNames;
mAttrNames = mNameBuffer;