return 0;
}
-struct ioengine_ops *load_ioengine(struct thread_data *td, char *name)
+struct ioengine_ops *load_ioengine(struct thread_data *td, const char *name)
{
char engine[16], engine_lib[256];
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