X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.c;h=e54016d6e6c1027b0e462043e914203a9b506ae9;hp=137c1e9889c8e025a59d8ab71df7378b767ef996;hb=95820b6e6c92025df8d89c0bf39b174e53137c41;hpb=d79db1222039e906dd49ae290daa59701f4e2385 diff --git a/iolog.c b/iolog.c index 137c1e98..e54016d6 100644 --- a/iolog.c +++ b/iolog.c @@ -534,7 +534,7 @@ void finish_log_named(struct thread_data *td, struct io_log *log, { char file_name[256], *p; - snprintf(file_name, 200, "%s_%s.log", prefix, postfix); + snprintf(file_name, sizeof(file_name), "%s_%s.log", prefix, postfix); p = basename(file_name); if (td->client_type == FIO_CLIENT_TYPE_GUI) {