]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 26 Jan 2014 15:03:02 +0000 (15:03 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 26 Jan 2014 15:03:02 +0000 (15:03 +0000)
MagickCore/blob.c

index e2120bf881aab9077d0e430f8127bb740acbabe3..7447ca22e3ea9ac4b731d85e1dc4ef4173f94137 100644 (file)
@@ -1582,7 +1582,7 @@ MagickExport unsigned char *ImageToBlob(const ImageInfo *image_info,
               status=WriteImage(blob_info,image,exception);
               (void) fclose(blob_info->file);
               if (status != MagickFalse)
-                blob=FileToBlob(image->filename,~0UL,length,exception);
+                blob=FileToBlob(unique,~0UL,length,exception);
             }
           (void) RelinquishUniqueFileResource(unique);
         }
@@ -1837,7 +1837,7 @@ MagickExport unsigned char *ImagesToBlob(const ImageInfo *image_info,
               status=WriteImages(blob_info,images,filename,exception);
               (void) fclose(blob_info->file);
               if (status != MagickFalse)
-                blob=FileToBlob(images->filename,~0UL,length,exception);
+                blob=FileToBlob(unique,~0UL,length,exception);
             }
           (void) RelinquishUniqueFileResource(unique);
         }