bug#17781, 8520, 3791: ABR in gif comment field. pnunn. rev:neeti@netscape.com.

git-svn-id: svn://10.0.0.236/trunk@57702 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pnunn%netscape.com 2000-01-13 23:04:20 +00:00
parent c002f01f83
commit 0e0edd854e

View File

@ -1158,10 +1158,11 @@ il_gif_write(il_container *ic, const PRUint8 *buf, int32 len)
break;
case gif_consume_comment:
{
BlockAllocCat(ic->comment, ic->comment_length, (char*)q, gs->count + 1);
{
BlockAllocCat(ic->comment, ic->comment_length, (char*)q, gs->count);
ic->comment_length += gs->count;
ic->comment[ic->comment_length] = 0;
BlockAllocCat(ic->comment, ic->comment_length, "", 1);
ic->comment_length++;
GETN(1, gif_comment_extension);
}
break;