From: Jens Axboe Date: Tue, 6 Jan 2015 19:03:09 +0000 (-0700) Subject: Adjust ctime_r buf down to 32 X-Git-Tag: fio-2.2.5~18 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=35326842297205554a9005723309bed565594c8a;p=fio.git Adjust ctime_r buf down to 32 We need 'at least 26 bytes', but not all 64. Signed-off-by: Jens Axboe --- 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);