X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=d041ef3c0bb56c770334d551061824113c8b5b2d;hp=266595262e6fc2ce3595bdeabb12111480036e70;hb=45054cbec0e624de3b79a795d7dfe1c64cdea934;hpb=f3afa57e36550288340f1b6c694f354ae72654b9 diff --git a/stat.c b/stat.c index 26659526..d041ef3c 100644 --- a/stat.c +++ b/stat.c @@ -534,7 +534,7 @@ void show_thread_status(struct thread_stat *ts, struct group_run_stats *rs) return; time(&time_p); - ctime_r((const time_t *) &time_p, time_buf); + os_ctime_r((const time_t *) &time_p, time_buf, sizeof(time_buf)); if (!ts->error) { log_info("%s: (groupid=%d, jobs=%d): err=%2d: pid=%d: %s",