projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fix options with no parameters
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 115e6f2c7c96ae22322225f0c2097aa8ab9418e0..96a96360750038ea87909c8fdfd45f36a89c9d13 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-42,13
+42,13
@@
static int check_engine_ops(struct ioengine_ops *ops)
return 0;
}
return 0;
}
-struct ioengine_ops *load_ioengine(struct thread_data *td, char *name)
+struct ioengine_ops *load_ioengine(struct thread_data *td, c
onst c
har *name)
{
char engine[16], engine_lib[256];
struct ioengine_ops *ops, *ret;
void *dlhandle;
{
char engine[16], engine_lib[256];
struct ioengine_ops *ops, *ret;
void *dlhandle;
- str
cpy(engine, name
);
+ str
ncpy(engine, name, sizeof(engine) - 1
);
/*
* linux libaio has alias names, so convert to what we want
/*
* linux libaio has alias names, so convert to what we want