exif_mnote_data_pentax_get_value: Fixed flipped inequation causing all value requests...
authorJan Patera <patera@pictview.com>
Mon, 1 Mar 2004 11:56:37 +0000 (12:56 +0100)
committerJan Patera <patera@pictview.com>
Mon, 1 Mar 2004 11:56:37 +0000 (12:56 +0100)
libexif/pentax/exif-mnote-data-pentax.c

index 7cb3d07..732b650 100644 (file)
@@ -63,7 +63,7 @@ exif_mnote_data_pentax_get_value (ExifMnoteData *d, unsigned int i, char *val, u
        ExifMnoteDataPentax *n = (ExifMnoteDataPentax *) d;
 
        if (!n) return NULL;
-       if (n->count >= i) return NULL;
+       if (n->count <= i) return NULL;
        return mnote_pentax_entry_get_value (&n->entries[i], val, maxlen);
 }