diff options
author | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
commit | 35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch) | |
tree | 6e0ff0341c69839e268459a199682628bae734ed /coreutils/stat.c | |
parent | 248a2600a2f4b442101ad568d1994b908bb28d4b (diff) | |
parent | f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff) | |
download | busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.gz busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.bz2 busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r-- | coreutils/stat.c | 5 |
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 | ||
106 | enum { | 107 | enum { |
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 | } |