Skip to content

Commit d23beeb

Browse files
author
Cristy
committed
...
1 parent ef67878 commit d23beeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: coders/wpg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ static Image *ExtractPostscript(Image *image,const ImageInfo *image_info,
803803
if(exception->severity != UndefinedException) goto FINISH_UNL;
804804
if(magic_info->name == (char *) NULL) goto FINISH_UNL;
805805

806-
(void) strncpy(clone_info->magick,magic_info->name,MaxTextExtent);
806+
(void) strncpy(clone_info->magick,magic_info->name,MaxTextExtent-1);
807807

808808
/* Read nested image */
809809
/*FormatString(clone_info->filename,"%s:%s",magic_info->name,postscript_file);*/

0 commit comments

Comments
 (0)