Commit d3360f2fd for imagemagick.org
commit d3360f2fd5ff06c97c4714d5993cbbbcab1350fa
Author: Cristy <urban-warrior@imagemagick.org>
Date: Thu Jan 29 22:04:41 2026 -0500
fix compiler exception
diff --git a/coders/ps.c b/coders/ps.c
index eb3844d8b..d2ea34588 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 fd7ee083e..009129a98 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 77f7e9450..2b02d49b5 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';
}
}