Bug 283487 nsStringInputStream is still broken

use LengthRemaining consistently
r=darin


git-svn-id: svn://10.0.0.236/trunk@216583 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2006-12-06 18:46:29 +00:00
parent 987a4bc169
commit 4d2beb9547

View File

@@ -264,7 +264,7 @@ nsStringInputStream::ReadSegments(nsWriteSegmentFun writer, void *closure,
NS_ASSERTION(mLength >= mOffset, "bad stream state");
// We may be at end-of-file
PRUint32 maxCount = mLength - mOffset;
PRUint32 maxCount = LengthRemaining();
if (maxCount == 0) {
*result = 0;
return NS_OK;