Merge branch 'master' into gfio
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index edeae877f817e77c05d4d95cc1f058e92b5770e4..4a881d4fedf75b22b6283cffa2fdd0236cf82dda 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -495,7 +495,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",