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)