From 35326842297205554a9005723309bed565594c8a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 6 Jan 2015 12:03:09 -0700 Subject: [PATCH] Adjust ctime_r buf down to 32 We need 'at least 26 bytes', but not all 64. Signed-off-by: Jens Axboe --- stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat.c b/stat.c index 3f51f0ce..db4a3872 100644 --- a/stat.c +++ b/stat.c @@ -504,7 +504,7 @@ static void show_thread_status_normal(struct thread_stat *ts, unsigned long runtime; double io_u_dist[FIO_IO_U_MAP_NR]; time_t time_p; - char time_buf[64]; + char time_buf[32]; if (!ddir_rw_sum(ts->io_bytes) && !ddir_rw_sum(ts->total_io_u)) return; @@ -1350,7 +1350,7 @@ void __show_run_stats(void) if (output_format == FIO_OUTPUT_NORMAL) log_info("\n"); else if (output_format == FIO_OUTPUT_JSON) { - char time_buf[64]; + char time_buf[32]; time_t time_p; time(&time_p); -- 2.25.1