mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
(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:
parent
bf199577e4
commit
1bef7c0474
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user