disable overambitious assert for now; r=rods; a=leaf

This commit is contained in:
rickg@netscape.com
1999-11-15 16:38:29 +00:00
parent 91e0358751
commit 45680ec87e
6 changed files with 42 additions and 0 deletions

View File

@@ -795,8 +795,10 @@ nsCString& nsCString::Assign(const PRUnichar* aString,PRInt32 aCount) {
// If this assertion fires, the caller is probably lying about the length of
// the passed-in string. File a bug on the caller.
#ifdef NS_DEBUG
#if 0
PRInt32 len=nsCRT::strlen(aString);
NS_WARN_IF_FALSE(len>=aCount,"possible embedded null in Assign(PRUnichar*)");
#endif
#endif
}
@@ -903,8 +905,10 @@ nsCString& nsCString::Append(const char* aCString,PRInt32 aCount) {
// the passed-in string. File a bug on the caller.
#ifdef NS_DEBUG
#if 0
PRInt32 len=strlen(aCString);
NS_WARN_IF_FALSE(len>=aCount,"possible embedded null in append(char*)");
#endif
#endif
}
else aCount=temp.mLength=nsCRT::strlen(aCString);
@@ -1090,8 +1094,10 @@ nsCString& nsCString::Insert(const char* aCString,PRUint32 anOffset,PRInt32 aCou
// If this assertion fires, the caller is probably lying about the length of
// the passed-in string. File a bug on the caller.
#ifdef NS_DEBUG
#if 0
PRInt32 len=strlen(aCString);
NS_WARN_IF_FALSE(len>=aCount,"possible embedded null in Insert(char*)");
#endif
#endif
}