]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 20 May 2012 16:15:57 +0000 (16:15 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 20 May 2012 16:15:57 +0000 (16:15 +0000)
coders/miff.c
coders/mpc.c

index b07af58f161e769624d6f135dce6499a9522e243..34db833654b129572dbe2de55cd228e2eb728c70 100644 (file)
@@ -2196,6 +2196,9 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
       value=GetImageProperty(image,property,exception);
       if (value != (const char *) NULL)
         {
+          size_t
+            length;
+
           length=strlen(value);
           for (i=0; i < (ssize_t) length; i++)
             if (isspace((int) ((unsigned char) value[i])) != 0)
index a156a73c9e77507f02fcf027e1cabd67a7e29c24..0b711227965d7ad4bbff00ced569a3fe006c28fd 100644 (file)
@@ -1298,6 +1298,9 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image,
       value=GetImageProperty(image,property,exception);
       if (value != (const char *) NULL)
         {
+          size_t
+            length;
+
           length=strlen(value);
           for (i=0; i < (ssize_t) length; i++)
             if (isspace((int) ((unsigned char) value[i])) != 0)