From: Cristy Date: Fri, 3 May 2019 19:01:05 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-44~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52338b3b948c869a6b214aa8a9ef94e1afe7b455;p=imagemagick ... --- diff --git a/coders/mpc.c b/coders/mpc.c index 35df8af89..aed8c9270 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -109,7 +109,7 @@ static MagickBooleanType IsMPC(const unsigned char *magick,const size_t length) { if (length < 14) return(MagickFalse); - if (LocaleNCompare((const char *) magick,"id=MagickCache",14) == 0) + if (LocaleNCompare((const char *) magick,"id=MagickPixelCache",14) == 0) return(MagickTrue); return(MagickFalse); } @@ -783,7 +783,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Verify that required image information is defined. */ - if ((LocaleCompare(id,"MagickCache") != 0) || + if ((LocaleCompare(id,"MagickPixelCache") != 0) || (image->storage_class == UndefinedClass) || (image->compression == UndefinedCompression) || (image->columns == 0) || (image->rows == 0) || @@ -1177,7 +1177,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, if ((image->storage_class == PseudoClass) && (image->colors > (size_t) (GetQuantumRange(image->depth)+1))) (void) SetImageStorageClass(image,DirectClass,exception); - (void) WriteBlobString(image,"id=MagickCache\n"); + (void) WriteBlobString(image,"id=MagickPixelCache\n"); (void) FormatLocaleString(buffer,MagickPathExtent,"magick-signature=%u\n", GetMagickSignature((const StringInfo *) NULL)); (void) WriteBlobString(image,buffer);