summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-02-05 13:46:41 +0000
committerJim Meyering <jim@meyering.net>2004-02-05 13:46:41 +0000
commit5937c873e6ed036d98493ceff8dd336a68fe792e (patch)
tree9e4c3fdeacb6c796d900410716b8663ac4f41d15 /src/stat.c
parent8b2ed3ed9505cee5df8c63d6b009653df25633f6 (diff)
downloadcoreutils-5937c873e6ed036d98493ceff8dd336a68fe792e.tar.xz
(human_time): Correct merge problem.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index 15ebded3e..527ccf2fe 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -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)