Remove carriage returns (^M) to fix cement (IRIX) bustage.

This commit is contained in:
dbaron%fas.harvard.edu 2001-04-17 00:32:17 +00:00
parent 36a5d4dd8d
commit b422675b61

View File

@ -419,21 +419,21 @@ nsFileInputStream::Read(char * buf, PRUint32 count, PRUint32 *result)
NS_IMETHODIMP
nsFileInputStream::ReadSegments(nsWriteSegmentFun writer, void * closure, PRUint32 count, PRUint32 *_retval)
{
PRUint32 nBytes;
char *readBuf = (char *)nsMemory::Alloc(count);
if (!readBuf)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = Read(readBuf, count, &nBytes);
*_retval = 0;
if (NS_SUCCEEDED(rv)) {
rv = writer(this, closure, readBuf, 0, nBytes, _retval);
NS_ASSERTION(NS_SUCCEEDED(rv) ? nBytes == *_retval : PR_TRUE, "Didn't write all Data.");
}
nsMemory::Free(readBuf);
return rv;
PRUint32 nBytes;
char *readBuf = (char *)nsMemory::Alloc(count);
if (!readBuf)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = Read(readBuf, count, &nBytes);
*_retval = 0;
if (NS_SUCCEEDED(rv)) {
rv = writer(this, closure, readBuf, 0, nBytes, _retval);
NS_ASSERTION(NS_SUCCEEDED(rv) ? nBytes == *_retval : PR_TRUE, "Didn't write all Data.");
}
nsMemory::Free(readBuf);
return rv;
}
NS_IMETHODIMP