From 9798028f8b60f0ad108105534056a191501b0d4e Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 10 Nov 2017 10:11:58 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/blob/master/coders/txt.c#L121 --- coders/txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/txt.c b/coders/txt.c index cffac6b5f..7da066b7a 100644 --- a/coders/txt.c +++ b/coders/txt.c @@ -118,7 +118,7 @@ static MagickBooleanType IsTXT(const unsigned char *magick,const size_t length) return(MagickFalse); if (LocaleNCompare((const char *) magick,MagickID,strlen(MagickID)) != 0) return(MagickFalse); - count=(ssize_t) sscanf((const char *) magick+32,"%lu,%lu,%lu,%s",&columns, + count=(ssize_t) sscanf((const char *) magick+32,"%lu,%lu,%lu,%32s",&columns, &rows,&depth,colorspace); if (count != 4) return(MagickFalse); -- 2.40.0