From efd45a01b48d5127830d95b0ebdfa64e2ef5b908 Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 3 May 2014 14:00:09 +0000 Subject: [PATCH] Fixed api call to Ghostscript. --- coders/pdf.c | 2 +- coders/ps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/pdf.c b/coders/pdf.c index baf61e906..90f8378a9 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -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; diff --git a/coders/ps.c b/coders/ps.c index 962deb151..cdb345ecc 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -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; -- 2.50.1