commit | d4a9d8323554414cc08f90b6eb991bc6955a64e2 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Thu Jan 08 15:08:16 2015 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Thu Jan 08 15:34:43 2015 +0000 |
tree | a49652e945260bc48dba768c657a703cced90e91 | |
parent | 9e6a7bf2025a49a7904239b1fba1445a79134e65 [diff] [blame] |
Fix printing of time_t values set in the distant future * util.c (sprinttime): Increase buffer size. * tests/stat64-v.test: Try to set modification time of the sample file to a value set in the distant future.
diff --git a/util.c b/util.c index b7476cf..570888c 100644 --- a/util.c +++ b/util.c
@@ -425,7 +425,7 @@ sprinttime(time_t t) { struct tm *tmp; - static char buf[sizeof("yyyy/mm/dd-hh:mm:ss")]; + static char buf[sizeof(int) * 3 * 6]; if (t == 0) { strcpy(buf, "0");