]> granicus.if.org Git - strace/commitdiff
Add 1900 to tm_year in sprinttime
authorWichert Akkerman <wichert@deephackmode.org>
Tue, 11 Jan 2000 14:41:09 +0000 (14:41 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Tue, 11 Jan 2000 14:41:09 +0000 (14:41 +0000)
ChangeLog
file.c

index d72f3896bdd690d73364d96165518118d5fc52fd..ad5b5b0dded493efc9d72ace4727cfe31d82955f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-01-11 Wichert Akkerman  <wakkerma@debian.org>
+
+  * Add 1900 to tm_year in sprinttime
+
 1999-12-24  Wichert Akkerman  <wakkerma@debian.org>
 
  * file.c: protect printstat64 with STAT64 instead of linux so we can
diff --git a/file.c b/file.c
index 9ffb838f7b6915304b62da2adb3070a0169364ea..f43d216a4cfd5d489cc0343a56bd5e87e1ec038d 100644 (file)
--- a/file.c
+++ b/file.c
@@ -445,7 +445,7 @@ time_t t;
        }
        tmp = localtime(&t);
        sprintf(buf, "%02d/%02d/%02d-%02d:%02d:%02d",
-               tmp->tm_year, tmp->tm_mon + 1, tmp->tm_mday,
+               tmp->tm_year + 1900, tmp->tm_mon + 1, tmp->tm_mday,
                tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
        return buf;
 }