strnicmp was not a typo. *nix compilers don't like it therefore
authorJan Patera <patera@pictview.com>
Fri, 21 May 2004 14:23:07 +0000 (16:23 +0200)
committerJan Patera <patera@pictview.com>
Fri, 21 May 2004 14:23:07 +0000 (16:23 +0200)
I changed it to strncasecmp. Hopefully non-*nix developers will
be able to replace it with strnicmp (e.g. via define in their config.h)

libexif/exif-data.c

index 6002200..0942bf2 100644 (file)
@@ -689,7 +689,7 @@ exif_data_load_data (ExifData *data, const unsigned char *d_orig,
                        /* Pentax & some variant of Nikon */
                        if ((e->size >= 2) && (e->data[0] == 0x00)
                                    && (e->data[1] == 0x1b)) {
-                               if (em && !strncmp (exif_entry_get_value (em, value, sizeof(value)), "Nikon", 5)) {
+                               if (em && !strncasecmp (exif_entry_get_value (em, value, sizeof(value)), "Nikon", 5)) {
                                        data->priv->md = exif_mnote_data_olympus_new ();
                                } else {
                                        data->priv->md = exif_mnote_data_pentax_new ();