diff --git a/base/src/nsString.cpp b/base/src/nsString.cpp index a63813ac50fb..7084e7bcc1a4 100644 --- a/base/src/nsString.cpp +++ b/base/src/nsString.cpp @@ -633,8 +633,11 @@ nsString& nsString::SetString(const char* anISOLatin1,PRInt32 aLength) { PRInt32 len=(aLength<0) ? nsCRT::strlen(anISOLatin1) : aLength; if(mCapacity<=len) EnsureCapacityFor(len); - for(int i=0;i= mCapacity) { EnsureCapacityFor(mLength+len); } - for(int i=0;i= mCapacity) { EnsureCapacityFor(mLength+len); } - for(int i=0;i= mCapacity) { EnsureCapacityFor(mLength+len); } - for(int i=0;i= mCapacity) { EnsureCapacityFor(mLength+len); } - for(int i=0;i