Checking in a infinite loop fix done by Vidur, not part of the build.

git-svn-id: svn://10.0.0.236/trunk@78690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2000-09-10 23:24:10 +00:00
parent 74a95cbec9
commit 0dd05c39be
2 changed files with 14 additions and 2 deletions

View File

@@ -374,7 +374,13 @@ nsHTMLContentSerializer::AppendToStringWrapped(const nsAReadableString& aStr,
if (start < 0)
start = 0;
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
if ((strOffset + start) < length) {
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
}
else {
indx = kNotFound;
}
// if there is no break than just add the entire string
if (indx == kNotFound)
{