diff --git a/mozilla/string/obsolete/nsStr.cpp b/mozilla/string/obsolete/nsStr.cpp index d36d7bbb348..793eb1e5bfe 100644 --- a/mozilla/string/obsolete/nsStr.cpp +++ b/mozilla/string/obsolete/nsStr.cpp @@ -285,7 +285,7 @@ void nsStr::Delete(nsStr& aDest,PRUint32 aDestOffset,PRUint32 aCount){ * @param aDestOffset is where in aDest truncation is to occur */ void nsStr::Truncate(nsStr& aDest,PRUint32 aDestOffset){ - if(aDestOffset<=aDest.mCapacity){ + if(aDestOffset