From 1403e030da4b5796fdf6be1eafe63d3746f791d4 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 31 Jul 2012 12:50:24 +0000 Subject: [PATCH] --- coders/gif.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/coders/gif.c b/coders/gif.c index ac69f5ecb..e0d4f68f7 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1095,14 +1095,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) 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; -- 2.50.1