aboutsummaryrefslogtreecommitdiff
path: root/coreutils/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/date.c')
-rw-r--r--coreutils/date.c6
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