aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r--coreutils/stat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c
index be2723d13..f608045d7 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -102,6 +102,7 @@
102//usage: ) 102//usage: )
103 103
104#include "libbb.h" 104#include "libbb.h"
105#include "common_bufsiz.h"
105 106
106enum { 107enum {
107 OPT_TERSE = (1 << 0), 108 OPT_TERSE = (1 << 0),
@@ -157,8 +158,8 @@ static const char *human_time(time_t t)
157 158
158 /*static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")] ALIGN1;*/ 159 /*static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")] ALIGN1;*/
159#define buf bb_common_bufsiz1 160#define buf bb_common_bufsiz1
160 161 setup_common_bufsiz();
161 strcpy(strftime_YYYYMMDDHHMMSS(buf, sizeof(buf), &t), ".000000000"); 162 strcpy(strftime_YYYYMMDDHHMMSS(buf, COMMON_BUFSIZE, &t), ".000000000");
162 return buf; 163 return buf;
163#undef buf 164#undef buf
164} 165}