[PATCH] fsx example
[fio.git] / ioengines.c
index 6a5073cf87ce06f1f851fed9bdf5815c4638f7cc..96a96360750038ea87909c8fdfd45f36a89c9d13 100644 (file)
@@ -48,7 +48,7 @@ struct ioengine_ops *load_ioengine(struct thread_data *td, const char *name)
        struct ioengine_ops *ops, *ret;
        void *dlhandle;
 
-       strcpy(engine, name);
+       strncpy(engine, name, sizeof(engine) - 1);
 
        /*
         * linux libaio has alias names, so convert to what we want