]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 17 Jan 2013 01:44:39 +0000 (01:44 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 17 Jan 2013 01:44:39 +0000 (01:44 +0000)
MagickCore/distribute-cache.c

index 1ef5e1b8e2af8868af13089c5f325ccf7f36553d..92ad76735b3a9b0ae9dac8c672095748112fa4ae 100644 (file)
@@ -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);