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:
@@ -88,7 +88,7 @@ nsAutoTextBuffer::GrowTo(PRInt32 aNewSize, PRBool aCopyToHead)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
memcpy(&newBuffer[aCopyToHead ? 0 : mBufferLen],
|
||||
mBuffer, sizeof(PRUnichar) * mBufferLen);
|
||||
mBuffer, sizeof(PRUnichar) * mBufferLen);
|
||||
if (mBuffer != mAutoBuffer) {
|
||||
delete [] mBuffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user