Skip to content

Commit 1913917

Browse files
author
Cristy
committed
...
1 parent a694fe7 commit 1913917

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc,char **argv)
2929
MagickCoreGenesis(*argv,MagickTrue);
3030
exception=AcquireExceptionInfo();
3131
image_info=CloneImageInfo((ImageInfo *) NULL);
32-
(void) strcpy(image_info->filename,argv[1]);
32+
(void) CopyMagickString(image_info->filename,argv[1],MagickPathExtent);
3333
images=ReadImage(image_info,exception);
3434
if (exception->severity != UndefinedException)
3535
CatchException(exception);
@@ -50,7 +50,7 @@ int main(int argc,char **argv)
5050
/*
5151
Write the image thumbnail.
5252
*/
53-
(void) strcpy(thumbnails->filename,argv[2]);
53+
(void) CopyMagickString(thumbnails->filename,argv[2],MagickPathExtent);
5454
WriteImage(image_info,thumbnails);
5555
/*
5656
Destroy the image thumbnail and exit.

0 commit comments

Comments
 (0)