From: Dan F. <dfa...@us...> - 2009-01-20 23:47:36
|
Update of /cvsroot/libexif/exif/exif In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14830/exif Modified Files: utils.c Log Message: Search for tag 0 when looking for a tag title to allow GPSVersionID Index: utils.c =================================================================== RCS file: /cvsroot/libexif/exif/exif/utils.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -p -d -r1.12 -r1.13 --- utils.c 13 Jan 2009 08:51:41 -0000 1.12 +++ utils.c 20 Jan 2009 23:47:29 -0000 1.13 @@ -30,6 +30,7 @@ exif_tag_from_string (const char *string { ExifTag tag; unsigned int i, number; + int t; const char *name; if (!string) @@ -48,7 +49,8 @@ exif_tag_from_string (const char *string return (tag); /* Is the string a tag's title? */ - for (tag = 0xffff; (int)tag > 0; tag--) { + for (t = 0xffff; t >= 0; t--) { + tag = (ExifTag) t; name = exif_tag_get_title (tag); if (name && !strcmp (string, name)) return (tag); |