From d3360f2fd5ff06c97c4714d5993cbbbcab1350fa Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 29 Jan 2026 22:04:41 -0500 Subject: [PATCH] fix compiler exception --- coders/ps.c | 2 +- coders/ps2.c | 2 +- coders/ps3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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'; } }