if (count == 0)
break;
header[count]='\0';
- comments=(char *) ResizeQuantumMemory(comments,length+count,
- sizeof(*comments));
- if (comments == (char *) NULL)
- ThrowReaderException(ResourceLimitError,
- "MemoryAllocationFailed");
- (void) CopyMagickMemory(comments+length,header,(size_t) count);
+ (void) ConcatenateString(&comments,(const char *) header);
}
- comments[length+count]='\0';
(void) SetImageProperty(image,"comment",comments,exception);
comments=DestroyString(comments);
break;