From: cristy Date: Thu, 17 Jan 2013 01:44:39 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b54f26e58978f72dcf4ba48df6060e9d7b2fdfa4;p=imagemagick --- diff --git a/MagickCore/distribute-cache.c b/MagickCore/distribute-cache.c index 1ef5e1b8e..92ad76735 100644 --- a/MagickCore/distribute-cache.c +++ b/MagickCore/distribute-cache.c @@ -431,6 +431,9 @@ static MagickBooleanType DestroyDistributeCache(SplayTreeInfo *image_registry, static MagickBooleanType ReadDistributeCacheMetacontent( SplayTreeInfo *image_registry,int file,const MagickSizeType session_key) { + const unsigned char + *metacontent; + ExceptionInfo *exception; @@ -481,7 +484,8 @@ static MagickBooleanType ReadDistributeCacheMetacontent( exception=DestroyExceptionInfo(exception); if (p == (const Quantum *) NULL) return(MagickFalse); - count=write(file,p,length); + metacontent=GetVirtualMetacontent(image); + count=write(file,metacontent,length); if (count != (ssize_t) length) return(MagickFalse); return(MagickTrue); @@ -574,7 +578,8 @@ static MagickBooleanType WriteDistributeCacheMetacontent( count; unsigned char - buffer[MaxTextExtent]; + buffer[MaxTextExtent], + *metacontent; image=(Image *) GetValueFromSplayTree(image_registry,(const void *) session_key); @@ -602,7 +607,8 @@ static MagickBooleanType WriteDistributeCacheMetacontent( exception=DestroyExceptionInfo(exception); if (q == (Quantum *) NULL) return(MagickFalse); - count=read(file,q,length); + metacontent=GetAuthenticMetacontent(image); + count=read(file,metacontent,length); if (count != (ssize_t) length) return(MagickFalse); status=SyncAuthenticPixels(image,exception);