sr=jst
d=unsinged integer tested for < 0, removed the test, since it will always
be 0 or greater.
This commit is contained in:
waqar%netscape.com 2001-03-27 15:40:15 +00:00
Родитель e332a1bea4
Коммит 5585a2f82a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -413,7 +413,7 @@ nsGenericDOMDataNode::ReplaceData(nsIContent *aOuterContent, PRUint32 aOffset,
// sanitize arguments
PRUint32 textLength = mText.GetLength();
if ((aOffset > textLength) || (aOffset < 0) || (aCount < 0)) {
if (aOffset > textLength) {
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}