From: Cristy Date: Sat, 24 Dec 2016 16:44:17 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b37f8c186f394de9f44679ccae0f70abc369ccb;p=imagemagick ... --- diff --git a/coders/wpg.c b/coders/wpg.c index aa9008937..b6e8e91a5 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -793,7 +793,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) strncpy(clone_info->magick,magic_info->name,MagickPathExtent); + (void) strncpy(clone_info->magick,magic_info->name,MagickPathExtent-1); /* Read nested image */ /*FormatString(clone_info->filename,"%s:%s",magic_info->name,postscript_file);*/