X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=96a96360750038ea87909c8fdfd45f36a89c9d13;hp=6a5073cf87ce06f1f851fed9bdf5815c4638f7cc;hb=0bbab0e789d4d8438d63327da052d64b45f0596a;hpb=b1508cf9ead36dc789a4e289f7522a070e57058c diff --git a/ioengines.c b/ioengines.c index 6a5073cf..96a96360 100644 --- a/ioengines.c +++ b/ioengines.c @@ -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