From: cristy Date: Wed, 6 Feb 2013 15:00:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=240e8250733bcdd1d140949bf9335d1ad499236e;p=imagemagick --- diff --git a/coders/mpc.c b/coders/mpc.c index 6b23c3a93..f02cf2021 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -524,6 +524,11 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) case 'm': case 'M': { + if (LocaleCompare(keyword,"magick-signature") == 0) + { + signature=(unsigned int) StringToUnsignedLong(options); + break; + } if (LocaleCompare(keyword,"matte-color") == 0) { (void) QueryColorCompliance(options,AllCompliance, @@ -659,11 +664,6 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) image->scene=StringToUnsignedLong(options); break; } - if (LocaleCompare(keyword,"signature") == 0) - { - signature=(unsigned int) StringToUnsignedLong(options); - break; - } (void) SetImageProperty(image,keyword,options,exception); break; } @@ -1094,7 +1094,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, (image->colors > (one << depth))) image->storage_class=DirectClass; (void) WriteBlobString(image,"id=MagickCache\n"); - (void) FormatLocaleString(buffer,MaxTextExtent,"signature=%u\n", + (void) FormatLocaleString(buffer,MaxTextExtent,"magick-signature=%u\n", GetMagickSignature((const StringInfo *) NULL)); (void) WriteBlobString(image,buffer); (void) FormatLocaleString(buffer,MaxTextExtent,