readLine was returning (in its truncation parameter) the exact opposite of the promised boolean. Thanks to kin@netscape.com for pointing this out.

This commit is contained in:
mcmullen%netscape.com 1999-06-22 23:21:00 +00:00
Родитель d83052b6c3
Коммит 0a212c8078
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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();
}