*: hopefully all setup_common_bufsiz() are in place
[oweals/busybox.git] / coreutils / stat.c
index 78df9c94840fe4ab2e0004205a8eb68972775e58..ddcfcf2d78bd319e7984fdb0c4077ee6a97e2fc1 100644 (file)
@@ -158,10 +158,9 @@ static const char *human_time(time_t t)
        /* coreutils 6.3 compat: */
 
        /*static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")] ALIGN1;*/
-#define        buf bb_common_bufsiz1
-#define sizeof_buf COMMON_BUFSIZE
-
-       strcpy(strftime_YYYYMMDDHHMMSS(buf, sizeof_buf, &t), ".000000000");
+#define buf bb_common_bufsiz1
+       setup_common_bufsiz();
+       strcpy(strftime_YYYYMMDDHHMMSS(buf, COMMON_BUFSIZE, &t), ".000000000");
        return buf;
 #undef buf
 }