]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(human_time): Correct merge problem.
authorJim Meyering <jim@meyering.net>
Thu, 5 Feb 2004 13:46:41 +0000 (13:46 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 5 Feb 2004 13:46:41 +0000 (13:46 +0000)
src/stat.c

index 15ebded3ea945c4bdc4eb83d1ca907a152fe1585..527ccf2fe764cfdcab73c354fa5be0495976914d 100644 (file)
@@ -333,7 +333,7 @@ human_time (time_t t, int t_ns)
                       (INT_STRLEN_BOUND (int) /* YYYY */
                        + 1 /* because YYYY might equal INT_MAX + 1900 */
                        + sizeof "-MM-DD HH:MM:SS.NNNNNNNNN +ZZZZ"))];
-  struct tm const *tm = localtime (t);
+  struct tm const *tm = localtime (&t);
   if (tm == NULL)
     return (TYPE_SIGNED (time_t)
            ? imaxtostr (t, str)