]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 28 Jun 2013 18:10:23 +0000 (18:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 28 Jun 2013 18:10:23 +0000 (18:10 +0000)
coders/jpeg.c

index 6964e4416cf16428493bb2d898e6db6d2e756c27..88af055c10e0cbd796d35540a2aaeefdde2ee4f0 100644 (file)
@@ -1890,10 +1890,10 @@ static void WriteProfile(j_compress_ptr jpeg_info,Image *image)
           length=MagickMin(GetStringInfoLength(profile)-i,65519L);
           p[12]=(unsigned char) ((i/65519L)+1);
           p[13]=(unsigned char) (GetStringInfoLength(profile)/65519L+1);
-          (void) CopyMagickMemory(p+tag_length,GetStringInfoDatum(profile)+i,
+          (void) CopyMagickMemory(p+tag_length+3,GetStringInfoDatum(profile)+i,
             length);
           jpeg_write_marker(jpeg_info,ICC_MARKER,GetStringInfoDatum(
-            custom_profile),(unsigned int) (length+tag_length));
+            custom_profile),(unsigned int) (length+tag_length+3));
         }
       }
     if (((LocaleCompare(name,"IPTC") == 0) ||