]> granicus.if.org Git - imagemagick/commitdiff
Fixed api call to Ghostscript.
authordirk <dirk@git.imagemagick.org>
Sat, 3 May 2014 14:00:09 +0000 (14:00 +0000)
committerdirk <dirk@git.imagemagick.org>
Sat, 3 May 2014 14:00:09 +0000 (14:00 +0000)
coders/pdf.c
coders/ps.c

index baf61e906c403907e9fa2628584116998cdd246c..90f8378a937a591fd9a52d76c9678c025fc752e1 100644 (file)
@@ -195,7 +195,7 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
     ghost_info_struct;
 
   ghost_info=(&ghost_info_struct);
-  (void) ResetMagickMemory(&ghost_info,0,sizeof(ghost_info));
+  (void) ResetMagickMemory(&ghost_info_struct,0,sizeof(ghost_info_struct));
   ghost_info_struct.delete_instance=(void (*)(gs_main_instance *))
     gsapi_delete_instance;
   ghost_info_struct.exit=(int (*)(gs_main_instance *)) gsapi_exit;
index 962deb151b1069a6d92f2b51c25860217799ae27..cdb345ecc0f7951218f92878410eb71b613f5cb1 100644 (file)
@@ -184,7 +184,7 @@ static MagickBooleanType InvokePostscriptDelegate(
     ghost_info_struct;
 
   ghost_info=(&ghost_info_struct);
-  (void) ResetMagickMemory(&ghost_info,0,sizeof(ghost_info));
+  (void) ResetMagickMemory(&ghost_info_struct,0,sizeof(ghost_info_struct));
   ghost_info_struct.delete_instance=(void (*)(gs_main_instance *))
     gsapi_delete_instance;
   ghost_info_struct.exit=(int (*)(gs_main_instance *)) gsapi_exit;