From: cristy Date: Sun, 20 May 2012 16:51:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5560 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fd0408547f02ba4b7b0df6f33bbb607e94544dc;p=imagemagick --- 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);