fix that annoying off by one bug.

This commit is contained in:
sspitzer%netscape.com 2000-01-13 09:27:08 +00:00
Родитель ec05063f56
Коммит 1e1d22cfe9
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -848,7 +848,7 @@ nsNNTPNewsgroupList::ProcessXOVERLINE(const char *line, PRUint32 *status)
*/
if (m_lastMsgNumber > m_firstMsgNumber)
{
PRInt32 totToDownload = m_lastMsgToDownload - m_firstMsgToDownload;
PRInt32 totToDownload = m_lastMsgToDownload - m_firstMsgToDownload + 1;
PRInt32 lastIndex = m_lastProcessedNumber - m_firstMsgNumber + 1;
PRInt32 numDownloaded = lastIndex;
PRInt32 totIndex = m_lastMsgNumber - m_firstMsgNumber + 1;