From: cristy Date: Sun, 3 Nov 2013 22:01:17 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=317c03eb480b8779c920e3e52bd8a6efbcd2f316;p=imagemagick --- diff --git a/coders/meta.c b/coders/meta.c index 3a8546c97..f1c25fdae 100644 --- a/coders/meta.c +++ b/coders/meta.c @@ -951,8 +951,6 @@ static int jpeg_skip_till_marker(Image *ifile, int marker) } #endif -static char psheader[] = "\xFF\xED\0\0Photoshop 3.0\08BIM\x04\x04\0\0\0\0"; - /* Embed binary IPTC data into a JPEG image. */ static int jpeg_embed(Image *ifile, Image *ofile, Image *iptc) { @@ -995,6 +993,9 @@ static int jpeg_embed(Image *ifile, Image *ofile, Image *iptc) if (iptc != (Image *)NULL) { + char + psheader[] = "\xFF\xED\0\0Photoshop 3.0\08BIM\x04\x04\0\0\0\0"; + len=(unsigned int) GetBlobSize(iptc); if (len & 1) len++; /* make the length even */