diff --git a/coders/ps.c b/coders/ps.c index eb3844d8b0..d2ea345887 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -1157,7 +1157,7 @@ static inline void FilenameToTitle(const char *filename,char *title, */ if (offset == 0) { - (void) strncpy(title,"Untitled",extent-1); + (void) CopyMagickString(title,"Untitled",extent-1); title[extent-1]='\0'; } } diff --git a/coders/ps2.c b/coders/ps2.c index fd7ee083e2..009129a98c 100644 --- a/coders/ps2.c +++ b/coders/ps2.c @@ -296,7 +296,7 @@ static inline void FilenameToTitle(const char *filename,char *title, */ if (offset == 0) { - (void) strncpy(title,"Untitled",extent-1); + (void) CopyMagickString(title,"Untitled",extent-1); title[extent-1]='\0'; } } diff --git a/coders/ps3.c b/coders/ps3.c index 77f7e94506..2b02d49b52 100644 --- a/coders/ps3.c +++ b/coders/ps3.c @@ -274,7 +274,7 @@ static inline void FilenameToTitle(const char *filename,char *title, */ if (offset == 0) { - (void) strncpy(title,"Untitled",extent-1); + (void) CopyMagickString(title,"Untitled",extent-1); title[extent-1]='\0'; } }