From 5fd0408547f02ba4b7b0df6f33bbb607e94544dc Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 20 May 2012 16:51:15 +0000 Subject: [PATCH] --- coders/gif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coders/gif.c b/coders/gif.c index 6d36205a5..acee79e9c 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1683,8 +1683,7 @@ static MagickBooleanType WriteGIFImage(const ImageInfo *image_info,Image *image, (void) WriteBlobByte(image,(unsigned char) 0x21); (void) WriteBlobByte(image,(unsigned char) 0xfe); value=GetImageProperty(image,"comment",exception); - p=value; - while (strlen(p) != 0) + for (p=value; strlen(p) != 0; ) { count=MagickMin(strlen(p),255); (void) WriteBlobByte(image,(unsigned char) count); -- 2.40.0