diff options
author | Dennis Real <github@tildepipe.org> | 2012-02-05 16:56:29 +0100 |
---|---|---|
committer | Dennis Real <github@tildepipe.org> | 2012-02-05 16:56:29 +0100 |
commit | 132ecc0f9f0a2243c4f6745d0af36be810bf9eba (patch) | |
tree | 261a213cda215ceb59c8ffad2b2bd5ecd9a41796 /src/exif.c | |
parent | 0d7602ffa3ef7d610c2af355258e8fe40ad84b8f (diff) |
- improved handling of images which have exif tags but not ours
- fixed uninitialzed pointer in thumbnail mode
- added nikon lens info if available
Diffstat (limited to 'src/exif.c')
-rw-r--r-- | src/exif.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -45,10 +45,10 @@ static void exif_trim_spaces(char *str) { if (*str != ' ') { - end = str; + end = str+1; } } - *++end = '\0'; + *end = '\0'; } @@ -146,7 +146,7 @@ void exif_get_info(ExifData * ed, char *buffer, unsigned int maxsize) { return; } - else if (ed == NULL ) + else if (ed == NULL) { snprintf(buffer, (size_t)maxsize, "%s\n", "No Exif data in file."); return; @@ -187,6 +187,8 @@ void exif_get_info(ExifData * ed, char *buffer, unsigned int maxsize) { /* Digital Vari-Program */ exif_get_mnote_tag(ed, 171, buffer + strlen(buffer), maxsize - strlen(buffer)); + /* Lens */ + exif_get_mnote_tag(ed, 132, buffer + strlen(buffer), maxsize - strlen(buffer)); } } |