add simple fio.service to start fio server with systemd
[fio.git] / ioengines.c
index 918b50ad2bf27dafc0d69f9750d106aad29e2fa4..4129ac2363b9757baf89e54788f94b656746e824 100644 (file)
@@ -126,10 +126,11 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td,
 struct ioengine_ops *load_ioengine(struct thread_data *td, const char *name)
 {
        struct ioengine_ops *ops;
-       char engine[16];
+       char engine[64];
 
        dprint(FD_IO, "load ioengine %s\n", name);
 
+       engine[sizeof(engine) - 1] = '\0';
        strncpy(engine, name, sizeof(engine) - 1);
 
        /*