(Checking in for jefft@netscape.com). Fixing rtm++ bug 56129. The file input stream wasn't always setting the EOF state correctly, this caused problems with saving mail messages to the sent folder and also problems with 'Save As Draft'. r=ducarroz, r=sspitzer, sr=mscott.

This commit is contained in:
jst%netscape.com 2000-10-13 11:14:48 +00:00
parent bf199577e4
commit 1bef7c0474

View File

@ -218,7 +218,7 @@ PRBool nsRandomAccessInputStream::readline(char* s, PRInt32 n)
TidyEndOfLine(tp);
bytesRead = (tp - s);
}
else if (!eof())
else if (!eof() && n-1 == bytesRead)
bufferLargeEnough = PR_FALSE;
position += bytesRead;
seek(position);