This commit is contained in:
2008-01-14 20:49:38 -08:00
parent 919372c852
commit fb6081e37e

View File

@@ -124,7 +124,7 @@ nsTArray_base::ShrinkCapacity(size_type elemSize) {
if (IsAutoArray() && GetAutoArrayBuffer()->mCapacity >= length) {
Header* header = GetAutoArrayBuffer();
// copy data, but don't copy the header to avoid overwritng mCapacity
// Copy data, but don't copy the header to avoid overwriting mCapacity
header->mLength = length;
memcpy(header + 1, mHdr + 1, length * elemSize);