if (count == 0)
break;
buffer[count]='\0';
- if ((count+offset+MagickPathExtent) >= extent)
+ if ((count+offset+MagickPathExtent) >= (ssize_t) extent)
{
extent<<=1;
comments=(char *) ResizeQuantumMemory(comments,extent+
}
(void) CopyMagickMemory(&comments[offset],(char *) buffer,extent-
offset);
+ }
+ (void) SetImageProperty(meta_image,"comment",comments,exception);
+ comments=DestroyString(comments);
break;
}
case 0xff:
0));
(void) WriteBlobByte(image,(unsigned char) 0x00);
value=GetImageProperty(image,"comment",exception);
- if ((LocaleCompare(write_info->magick,"GIF87") != 0) &&
- (value != (const char *) NULL))
+ if (value != (const char *) NULL)
{
register const char
*p;