[PATCH] String copy limiting fixes

Avoid overflows when we can.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c
index 6a5073c..96a9636 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -48,7 +48,7 @@
 	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