genfio: Splitting gen_template in 2 parts
[fio.git] / iolog.c
diff --git a/iolog.c b/iolog.c
index 137c1e9889c8e025a59d8ab71df7378b767ef996..9bcf0d8e2982e37ce5d48fbd64e9653872e54ea0 100644 (file)
--- 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) {