summaryrefslogtreecommitdiff
path: root/src/exif.c
diff options
context:
space:
mode:
authorDennis Real <github@tildepipe.org>2012-02-05 16:56:29 +0100
committerDennis Real <github@tildepipe.org>2012-02-05 16:56:29 +0100
commit132ecc0f9f0a2243c4f6745d0af36be810bf9eba (patch)
tree261a213cda215ceb59c8ffad2b2bd5ecd9a41796 /src/exif.c
parent0d7602ffa3ef7d610c2af355258e8fe40ad84b8f (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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/exif.c b/src/exif.c
index 02154e4..9d26072 100644
--- a/src/exif.c
+++ b/src/exif.c
@@ -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));
}
}