commit | 0bbab0e789d4d8438d63327da052d64b45f0596a | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Nov 02 09:18:36 2006 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Nov 02 09:18:36 2006 +0100 |
tree | 923baa901976443785240829230345920872b4aa | |
parent | b1508cf9ead36dc789a4e289f7522a070e57058c [diff] [blame] |
[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