readLine was returning (in its truncation parameter) the exact opposite of the promised boolean. Thanks to kin@netscape.com for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@36392 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5ed0245da6
commit
d6a17f446b
@ -525,7 +525,7 @@ NS_IMETHODIMP nsFileSpecImpl::readLine(char** line, PRInt32 bufferSize, PRBool *
|
||||
if (!mInputStream)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
nsInputFileStream s(mInputStream);
|
||||
*wasTruncated = s.readline(*line, bufferSize);
|
||||
*wasTruncated = !s.readline(*line, bufferSize);
|
||||
return s.error();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user