From ee3030edc3c6e6b097dc65bbab2f983a66f71d5c Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Fri, 27 Apr 2001 04:05:53 +0000 Subject: [PATCH] fix growing of uint32 arrays r=naving, sr=sspitzer part of work for 76668 --- mailnews/base/util/nsUInt32Array.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/base/util/nsUInt32Array.cpp b/mailnews/base/util/nsUInt32Array.cpp index de6b0101e8c3..feff9e36eba2 100644 --- a/mailnews/base/util/nsUInt32Array.cpp +++ b/mailnews/base/util/nsUInt32Array.cpp @@ -172,7 +172,7 @@ PRUint32 nsUInt32Array::Add(PRUint32 newElement) PRUint32 nsUInt32Array::Add(PRUint32 *elementPtr, PRUint32 numElements) { if (SetSize(m_nSize + numElements)) - nsCRT::memcpy(m_pData + m_nSize, elementPtr, numElements * sizeof(PRUint32)); + nsCRT::memcpy(m_pData + m_nSize - numElements, elementPtr, numElements * sizeof(PRUint32)); return m_nSize; }