2004-10-16 Lutz Mueller <lutz@users.sourceforge.net>
authorLutz Mueller <lutz.s.mueller@gmail.com>
Wed, 20 Oct 2004 06:06:47 +0000 (08:06 +0200)
committerLutz 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

index 67699c8..4d23302 100644 (file)
@@ -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;