changeset 567:2af11dbee6db

exif_get_formatted_by_key(): skip prefix when comparing.
author zas_
date Sat, 03 May 2008 20:49:25 +0000
parents db08ccd54169
children 04d4bdf5a2d8
files src/exif-common.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/exif-common.c	Sat May 03 20:40:50 2008 +0000
+++ b/src/exif-common.c	Sat May 03 20:49:25 2008 +0000
@@ -460,8 +460,9 @@
 
 		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);
 		}