X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.c;h=b9200ba9223488923ed2cc879d58971c31c70dab;hb=a06aec04b3422d8ec63250e3ac56bbf526bc41b0;hp=9e3fcc9f681a46fa336ef247a6aa6497dade09af;hpb=2e97fa1b0d76edc6517fa4a8a4f6e0792b458e8c;p=fio.git diff --git a/ioengines.c b/ioengines.c index 9e3fcc9f..b9200ba9 100644 --- a/ioengines.c +++ b/ioengines.c @@ -121,18 +121,15 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, return ops; } -static struct ioengine_ops *__load_ioengine(const char *name) +static struct ioengine_ops *__load_ioengine(const char *engine) { - char engine[64]; - - snprintf(engine, sizeof(engine), "%s", name); - /* * linux libaio has alias names, so convert to what we want */ if (!strncmp(engine, "linuxaio", 8)) { - dprint(FD_IO, "converting ioengine name: %s -> libaio\n", name); - strcpy(engine, "libaio"); + dprint(FD_IO, "converting ioengine name: %s -> libaio\n", + engine); + engine = "libaio"; } dprint(FD_IO, "load ioengine %s\n", engine);