From: cristy Date: Tue, 16 Jul 2013 20:18:37 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3696d418217b8b1c77e50324708d3ab26db820a;p=imagemagick --- 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);