From: Cristy Date: Sun, 16 Jul 2017 18:42:49 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/567 X-Git-Tag: 7.0.6-2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=167e1538ae9818d46c9462a4273082871e35a480;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/567 --- diff --git a/coders/jp2.c b/coders/jp2.c index b9fe4ab00..48352d823 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -917,7 +917,7 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image, ¶meters.subsampling_dx,¶meters.subsampling_dy); property=GetImageProperty(image,"comment",exception); if (property != (const char *) NULL) - parameters.cp_comment=ConstantString(property); + parameters.cp_comment=property; channels=3; jp2_colorspace=OPJ_CLRSPC_SRGB; if (image->colorspace == YUVColorspace)