]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 25 Sep 2009 14:37:03 +0000 (14:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 25 Sep 2009 14:37:03 +0000 (14:37 +0000)
coders/meta.c

index 9254b5b5419d367847c6107e506842c12939dfa4..8c4fe8ed8690683b49873a8b568c14d116bc3f9e 100644 (file)
@@ -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;