]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 16 Jul 2013 20:18:37 +0000 (20:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 16 Jul 2013 20:18:37 +0000 (20:18 +0000)
coders/jpeg.c

index 881296fcdf93bf00a408c9db855db98b45fe33c2..16fd570696efb24d0c7c3fb81c402b8a4bd31410 100644 (file)
@@ -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);