From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> ->name is a pointer now, so it can't be strcpy'd without a valid address set to ->name. Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- engines/null.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/null.c b/engines/null.c index f7ba370..4378f5e 100644 --- a/engines/null.c +++ b/engines/null.c @@ -142,7 +142,7 @@ void get_ioengine(struct ioengine_ops **ioengine_ptr) *ioengine_ptr = (struct ioengine_ops *) malloc(sizeof(struct ioengine_ops)); ioengine = *ioengine_ptr; - strcpy(ioengine->name, "cpp_null"); + ioengine->name = "cpp_null"; ioengine->version = FIO_IOOPS_VERSION; ioengine->queue = fio_null_queue; ioengine->commit = fio_null_commit; -- 2.5.5 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html