projects
/
platform
/
upstream
/
libexif.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c813f
)
2004-10-16 Lutz Mueller <lutz@users.sourceforge.net>
author
Lutz Mueller
<lutz.s.mueller@gmail.com>
Wed, 20 Oct 2004 06:06:47 +0000
(08:06 +0200)
committer
Lutz Mueller
<lutz.s.mueller@gmail.com>
Wed, 20 Oct 2004 06:06:47 +0000
(08:06 +0200)
Martin Willers <willers@xm-arts.de> found an off-by-one error:
* libexif/exif-entry.c: libexif forget to add 1
to tm_mon from struct tm
libexif/exif-entry.c
patch
|
blob
|
history
diff --git
a/libexif/exif-entry.c
b/libexif/exif-entry.c
index
67699c8
..
4d23302
100644
(file)
--- a/
libexif/exif-entry.c
+++ b/
libexif/exif-entry.c
@@
-1224,7
+1224,7
@@
exif_entry_initialize (ExifEntry *e, ExifTag tag)
if (!e->data) break;
snprintf ((char *) e->data, e->size,
"%04i:%02i:%02i %02i:%02i:%02i",
- tm->tm_year + 1900, tm->tm_mon, tm->tm_mday,
+ tm->tm_year + 1900, tm->tm_mon
+ 1
, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
break;