From: cristy Date: Fri, 25 Sep 2009 14:37:03 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10636 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1220a4ee128be47e2ac122c1c4cfc3a873661cd;p=imagemagick --- diff --git a/coders/meta.c b/coders/meta.c index 9254b5b54..8c4fe8ed8 100644 --- a/coders/meta.c +++ b/coders/meta.c @@ -1639,10 +1639,10 @@ static size_t GetIPTCStream(unsigned char **info,size_t length) break; if (marker == IPTC_ID) { - *info=p; /* let the caller know were it is */ - return(extent); + *info=p; + return(tag_length); } - if (tag_length & 0x01) + if ((tag_length & 0x01) != 0) tag_length++; p+=tag_length; extent-=tag_length;