bug 395822: Use correct String::Find overload r=jonas, a=release drivers

This commit is contained in:
tglek@mozilla.com 2007-11-12 14:01:48 -08:00
Родитель 1cbd4d065b
Коммит 04cb2355b1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -614,7 +614,7 @@ nsPlainTextSerializer::DoOpenContainer(const nsIParserNode* aNode, PRInt32 aTag)
// considers 'c' to be a valid numeric char (even if radix=10)
// but then gets confused if it sees it next to the number
// when the radix specified was 10, and returns an error code.
PRInt32 semiOffset = style.Find("ch", widthOffset+6);
PRInt32 semiOffset = style.Find("ch", PR_FALSE, widthOffset+6);
PRInt32 length = (semiOffset > 0 ? semiOffset - widthOffset - 6
: style.Length() - widthOffset);
nsAutoString widthstr;