diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
commit | 9de2e5a22213842da5b116723392de88de9ed419 (patch) | |
tree | dff999a566382174e084d377dc3b4c03de1d4c62 /coreutils/date.c | |
parent | 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (diff) | |
download | busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.gz busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.bz2 busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.zip |
*: hopefully all setup_common_bufsiz() are in place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index 59b4b8f2a..ff3214d85 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -368,8 +368,8 @@ int date_main(int argc UNUSED_PARAM, char **argv) | |||
368 | } | 368 | } |
369 | #endif | 369 | #endif |
370 | 370 | ||
371 | #define date_buf bb_common_bufsiz1 | 371 | #define date_buf bb_common_bufsiz1 |
372 | #define sizeof_date_buf COMMON_BUFSIZE | 372 | setup_common_bufsiz(); |
373 | if (*fmt_dt2str == '\0') { | 373 | if (*fmt_dt2str == '\0') { |
374 | /* With no format string, just print a blank line */ | 374 | /* With no format string, just print a blank line */ |
375 | date_buf[0] = '\0'; | 375 | date_buf[0] = '\0'; |
@@ -379,7 +379,7 @@ int date_main(int argc UNUSED_PARAM, char **argv) | |||
379 | fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S"; | 379 | fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S"; |
380 | } | 380 | } |
381 | /* Generate output string */ | 381 | /* Generate output string */ |
382 | strftime(date_buf, sizeof_date_buf, fmt_dt2str, &tm_time); | 382 | strftime(date_buf, COMMON_BUFSIZE, fmt_dt2str, &tm_time); |
383 | } | 383 | } |
384 | puts(date_buf); | 384 | puts(date_buf); |
385 | 385 | ||