From: Dan Fandrich Date: Fri, 5 Dec 2008 20:52:53 +0000 (-0800) Subject: Fixed interpretation of the Olympus MNOTE_OLYMPUS_TAG_MODE tag X-Git-Tag: libexif-0_6_21-release~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac0f7091564aca6f4676ea076d04e4922faaa9a8;p=platform%2Fupstream%2Flibexif.git Fixed interpretation of the Olympus MNOTE_OLYMPUS_TAG_MODE tag --- diff --git a/NEWS b/NEWS index 9e23dcc..0196bc5 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ libexif-0.6.x: and when each object allocated by libexif isn't used by more than one thread simultaneously * Expanded the Doxygen API documentation + * Fixed an Olympus MakerNote interpretation libexif-0.6.17 (2008-11-06): * Updated translations: cs, de, pl, sk, vi diff --git a/libexif/olympus/mnote-olympus-entry.c b/libexif/olympus/mnote-olympus-entry.c index 1e9e1e2..1281b5d 100644 --- a/libexif/olympus/mnote-olympus-entry.c +++ b/libexif/olympus/mnote-olympus-entry.c @@ -556,7 +556,7 @@ mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int m vl = exif_get_long (entry->data + 4, entry->order); snprintf (buf, sizeof (buf), "/%li/", (long int) vl); strncat (v, buf, maxlen - strlen (v)); - vl = exif_get_long (entry->data + 4, entry->order); + vl = exif_get_long (entry->data + 8, entry->order); switch (vl) { case 1: strncat (v, _("left to right"), maxlen - strlen (v));