Bug 147697: assertion every time I send mail: generate_encodedwords(), output_carryoverlen must be > 0. r=ducarroz, s=bienvenu

This commit is contained in:
smontagu%smontagu.org 2006-10-18 07:49:22 +00:00
Родитель 2db174e2bf
Коммит f1ce8f80b0
1 изменённых файлов: 0 добавлений и 2 удалений

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

@ -191,8 +191,6 @@ static unsigned char * utf8_nextchar(unsigned char *str)
static
PRInt32 generate_encodedwords(char *pUTF8, const char *charset, char method, char *output, PRInt32 outlen, PRInt32 output_carryoverlen, PRInt32 foldlen, PRBool foldingonly)
{
NS_ASSERTION(output_carryoverlen > 0, "output_carryoverlen must be > 0");
nsCOMPtr <nsISaveAsCharset> conv;
PRUnichar *_pUCS2 = nsnull, *pUCS2 = nsnull, *pUCS2Head = nsnull, cUCS2Tmp = 0;
char *ibuf, *o = output;