File ImageMagick-CVE-2016-7527.patch of Package ImageMagick.8212

diff --git a/coders/wpg.c b/coders/wpg.c
index ea987fd..1e898eb 100644
--- a/coders/wpg.c
+++ b/coders/wpg.c
@@ -794,7 +794,7 @@ static Image *ExtractPostscript(Image *image,const ImageInfo *image_info,
   if(exception->severity != UndefinedException) goto FINISH_UNL;
   if(magic_info->name == (char *) NULL) goto FINISH_UNL;
 
-  (void) CopyMagickMemory(clone_info->magick,magic_info->name,MaxTextExtent);
+  (void) strncpy(clone_info->magick,magic_info->name,MaxTextExtent);
 
     /* Read nested image */
   /*FormatString(clone_info->filename,"%s:%s",magic_info->name,postscript_file);*/