Fix to landing of bug 195350. Shuffle the right memory.

r/sr=tor
This commit is contained in:
sicking%bigfoot.com 2004-01-15 23:10:45 +00:00
Родитель a1a208983a
Коммит 586ea7aa13
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -110,7 +110,7 @@ nsAttrAndChildArray::InsertChildAt(nsIContent* aChild, PRUint32 aPos)
void** oldStart = mImpl->mBuffer + offset;
memmove(newStart, oldStart, aPos * sizeof(nsIContent*));
newStart[aPos] = aChild;
memmove(newStart[aPos + 1], oldStart[aPos],
memmove(&newStart[aPos + 1], &oldStart[aPos],
(childCount - aPos) * sizeof(nsIContent*));
NS_ADDREF(aChild);