Skip to content

Commit

Permalink
exif_get_formatted_by_key(): skip prefix when comparing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 3, 2008
1 parent 1000ac5 commit 03acb7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exif-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,9 @@ gchar *exif_get_formatted_by_key(ExifData *exif, const gchar *key, gint *key_val

if (key_valid) *key_valid = TRUE;

key = key + 10;
for (i = 0; ExifFormattedList[i].key; i++)
if (strcmp(key, ExifFormattedList[i].key) == 0)
if (strcmp(key, ExifFormattedList[i].key + 10) == 0)
return ExifFormattedList[i].build_func(exif);
}

Expand Down

0 comments on commit 03acb7c

Please sign in to comment.