]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/910
authorCristy <urban-warrior@imagemagick.org>
Fri, 22 Dec 2017 12:50:39 +0000 (07:50 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 22 Dec 2017 12:50:39 +0000 (07:50 -0500)
coders/txt.c

index 56da485825dac2858023d1e234f936a9b50a3351..f6f671ae38b53d4d7d06b47b43d2378b833036d2 100644 (file)
@@ -565,6 +565,7 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
           break;
       }
     }
+    *text='\0';
     (void) ReadBlobString(image,text);
     if (LocaleNCompare((char *) text,MagickID,strlen(MagickID)) == 0)
       {