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)