diff --git a/coders/cals.c b/coders/cals.c
index 6faffce..fc64119 100644
--- a/coders/cals.c
+++ b/coders/cals.c
@@ -262,7 +262,7 @@
image=DestroyImage(image);
read_info=CloneImageInfo(image_info);
SetImageInfoBlob(read_info,(void *) NULL,0);
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"group4:%.1024s",
+ (void) FormatMagickString(read_info->filename,MaxTextExtent,"group4:%s",
filename);
(void) FormatMagickString(message,MaxTextExtent,"%lux%lu",width,height);
read_info->size=ConstantString(message);
diff --git a/coders/ept.c b/coders/ept.c
index c314176..9f22675 100644
--- a/coders/ept.c
+++ b/coders/ept.c
@@ -407,7 +407,7 @@
return(MagickFalse);
write_info=CloneImageInfo(image_info);
(void) CopyMagickString(write_info->magick,"TIFF",MaxTextExtent);
- (void) FormatMagickString(filename,MaxTextExtent,"tiff:%.1024s",
+ (void) FormatMagickString(filename,MaxTextExtent,"tiff:%s",
write_info->filename);
(void) CopyMagickString(write_info->filename,filename,MaxTextExtent);
(void) TransformImage(&write_image,(char *) NULL,"512x512>");
diff --git a/coders/pes.c b/coders/pes.c
index d82aeee..24469e5 100644
--- a/coders/pes.c
+++ b/coders/pes.c
@@ -653,7 +653,7 @@
*/
read_info=CloneImageInfo(image_info);
SetImageInfoBlob(read_info,(void *) NULL,0);
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"svg:%.1024s",
+ (void) FormatMagickString(read_info->filename,MaxTextExtent,"svg:%s",
filename);
image=ReadImage(read_info,exception);
if (image != (Image *) NULL)
diff --git a/coders/tiff.c b/coders/tiff.c
index 2271695..24dc3d8 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -371,8 +371,7 @@
Read TIFF image.
*/
read_info=CloneImageInfo((ImageInfo *) NULL);
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"%.1024s",
- filename);
+ (void) FormatMagickString(read_info->filename,MaxTextExtent,"%s",filename);
image=ReadTIFFImage(read_info,exception);
read_info=DestroyImageInfo(read_info);
if (image != (Image *) NULL)
diff --git a/coders/wmf.c b/coders/wmf.c
index c91bcb2..58d6977 100644
--- a/coders/wmf.c
+++ b/coders/wmf.c
@@ -211,7 +211,7 @@
Read EPS image.
*/
read_info=CloneImageInfo(image_info);
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"eps:%.1024s",
+ (void) FormatMagickString(read_info->filename,MaxTextExtent,"eps:%s",
filename);
image=ReadImage(read_info,exception);
read_info=DestroyImageInfo(read_info);
diff --git a/coders/wpg.c b/coders/wpg.c
index 8710f86..f4c2a0f 100644
--- a/coders/wpg.c
+++ b/coders/wpg.c
@@ -760,8 +760,8 @@
(void) CopyMagickMemory(clone_info->magick,magic_info->name,MaxTextExtent);
/* Read nested image */
- /*FormatString(clone_info->filename,"%s:%.1024s",magic_info->name,postscript_file);*/
- FormatMagickString(clone_info->filename,MaxTextExtent,"%.1024s",postscript_file);
+ /*FormatString(clone_info->filename,"%s:%s",magic_info->name,postscript_file);*/
+ FormatMagickString(clone_info->filename,MaxTextExtent,"%s",postscript_file);
image2=ReadImage(clone_info,exception);
if (!image2)