From c3696d418217b8b1c77e50324708d3ab26db820a Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 16 Jul 2013 20:18:37 +0000 Subject: [PATCH] --- coders/jpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coders/jpeg.c b/coders/jpeg.c index 881296fcd..16fd57069 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -1888,6 +1888,7 @@ static void WriteProfile(j_compress_ptr jpeg_info,Image *image) tag_length=strlen(ICC_PROFILE); p=GetStringInfoDatum(custom_profile); (void) CopyMagickMemory(p,ICC_PROFILE,tag_length); + p[tag_length]='\0'; for (i=0; i < (ssize_t) GetStringInfoLength(profile); i+=65519L) { length=MagickMin(GetStringInfoLength(profile)-i,65519L); -- 2.40.0