]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 14 Aug 2012 12:38:33 +0000 (12:38 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 14 Aug 2012 12:38:33 +0000 (12:38 +0000)
MagickCore/blob.c
coders/jnx.c

index 0bd7413bbdc53fc225fb3111507e551e86daffe7..7fb96c982026dca5e965f7c5e08a41e52fb2c73a 100644 (file)
@@ -409,10 +409,10 @@ MagickExport Image *BlobToImage(const ImageInfo *image_info,const void *blob,
       */
       for (images=GetFirstImageInList(image); images != (Image *) NULL; )
       {
-        (void) CopyMagickMemory(images->magick_filename,image_info->filename,
-          sizeof(images->magick_filename));
         (void) CopyMagickMemory(images->filename,image_info->filename,
           sizeof(images->filename));
+        (void) CopyMagickMemory(images->magick_filename,image_info->filename,
+          sizeof(images->magick_filename));
         images=GetNextImageInList(images);
       }
     }
index abe11a11f24d76185befe74e67b3e9cb4230b6fc..677640ca9bb342dc87c03a09e2905df7eafc0d37 100644 (file)
@@ -292,6 +292,7 @@ static Image *ReadJNXImage(const ImageInfo *image_info,ExceptionInfo *exception)
       (void) SeekBlob(image,offset,SEEK_SET);
       if (tile_image == (Image *) NULL)
         continue;
+       (void) CopyMagickString(tile_image->magick,image->magick,MaxTextExtent);
       (void) FormatImageProperty(tile_image,"jnx:northeast","%.20g,%.20g",
         northeast.x,northeast.y);
       (void) FormatImageProperty(tile_image,"jnx:southwest","%.20g,%.20g",