mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
fix compiler exception
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user