From: cristy Date: Sun, 20 May 2012 16:15:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d76ed5d9fc4bd7d91bfd0db22ab8caf655039bc5;p=imagemagick --- diff --git a/coders/miff.c b/coders/miff.c index b07af58f1..34db83365 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -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) diff --git a/coders/mpc.c b/coders/mpc.c index a156a73c9..0b7112279 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -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)