fix saving news message for offline use when reading message, r/sr=mscott, a=sspitzer 282010

This commit is contained in:
bienvenu%nventure.com 2005-02-15 00:13:35 +00:00
Родитель fc7a456458
Коммит 76f14c0663
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -1749,7 +1749,8 @@ NS_IMETHODIMP nsMsgNewsFolder::NotifyDownloadedLine(const char *line, nsMsgKey k
if (m_tempMessageStream)
{
if (line[0] == '.' && line[1] == 0)
// line now contains the linebreak.
if (line[0] == '.' && line[MSG_LINEBREAK_LEN + 1] == 0)
{
// end of article.
if (m_offlineHeader)
@ -1766,8 +1767,6 @@ NS_IMETHODIMP nsMsgNewsFolder::NotifyDownloadedLine(const char *line, nsMsgKey k
PRUint32 count = 0;
rv = m_tempMessageStream->Write(line,
strlen(line), &count);
if (NS_SUCCEEDED(rv))
rv = m_tempMessageStream->Write(MSG_LINEBREAK, MSG_LINEBREAK_LEN, &count);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to write to stream");
}
}