X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.c;h=9bcf0d8e2982e37ce5d48fbd64e9653872e54ea0;hp=137c1e9889c8e025a59d8ab71df7378b767ef996;hb=d926d535c7e1a12ff1a57a718ed8e84f617b0172;hpb=1e5324e723116a5faf9da686993cc79c14d62d4b diff --git a/iolog.c b/iolog.c index 137c1e98..9bcf0d8e 100644 --- a/iolog.c +++ b/iolog.c @@ -315,6 +315,7 @@ static int read_iolog2(struct thread_data *td, FILE *f) act); continue; } + fileno = get_fileno(td, fname); } else if (r == 2) { rw = DDIR_INVAL; if (!strcmp(act, "add")) { @@ -534,7 +535,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) {