Bug 499992 nsMsgTemplateReplyHelper signed integer used for array index
r=neil sr=neil
This commit is contained in:
Родитель
dd75118361
Коммит
003f4026da
|
@ -1084,7 +1084,7 @@ nsMsgTemplateReplyHelper::OnDataAvailable(nsIRequest* request,
|
|||
rv = inStream->Available(&available);
|
||||
while (NS_SUCCEEDED(rv) && available > 0)
|
||||
{
|
||||
PRInt32 bodyOffset = 0, readOffset = 0;
|
||||
PRUint32 bodyOffset = 0, readOffset = 0;
|
||||
if (!mInMsgBody && mLastBlockChars[0])
|
||||
{
|
||||
memcpy(readBuf, mLastBlockChars, 3);
|
||||
|
@ -1102,7 +1102,7 @@ nsMsgTemplateReplyHelper::OnDataAvailable(nsIRequest* request,
|
|||
// looks like <CR><CR>, <LF><LF>, or <CRLF><CRLF>
|
||||
if (!mInMsgBody)
|
||||
{
|
||||
for (PRInt32 charIndex = 0; charIndex < readCount && !bodyOffset; charIndex++)
|
||||
for (PRUint32 charIndex = 0; charIndex < readCount && !bodyOffset; charIndex++)
|
||||
{
|
||||
if (readBuf[charIndex] == '\r' || readBuf[charIndex] == '\n')
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче