]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 16:44:17 +0000 (11:44 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 16:44:17 +0000 (11:44 -0500)
coders/wpg.c

index aa900893741e6fde3e82f1c19d3598d27a04b21d..b6e8e91a50496a089ba58c5343cb3a8164d0c4dc 100644 (file)
@@ -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);*/