fix compiler exception

This commit is contained in:
Cristy
2026-01-29 22:04:41 -05:00
parent 7bea1caf56
commit d3360f2fd5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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';
}
}
+1 -1
View File
@@ -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';
}
}
+1 -1
View File
@@ -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';
}
}