Backed out changeset a6c8c4ccb5e7 (bug 1113005) because of mochitest-4 bustage on a CLOSED TREE

This commit is contained in:
Ehsan Akhgari 2014-12-19 14:26:52 -05:00
parent 50a458a845
commit e526ef3b2f

View File

@ -505,7 +505,7 @@ nsTString_CharT::ReplaceSubstring( const self_type& aTarget, const self_type& aN
return;
if (oldData) {
// Copy all of the old data to the new buffer.
char_traits::copy(mData, oldData, XPCOM_MIN(mLength, newLength));
char_traits::copy(mData, oldData, XPCOM_MAX(mLength, newLength));
::ReleaseData(oldData, oldFlags);
}