From aa2b823c02031be3d7edf0a569ed90882a8411c3 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 30 Jul 2016 00:06:00 +0900 Subject: [PATCH] Use larger local buffer for I/O engine name 16 bytes may not be large enough in the future if a new I/O engine with a name longer than strlen(name)=15 is added. The longest one right now seems to be "fusion-aw-sync" which is 14(+1). Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- ioengines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioengines.c b/ioengines.c index f7b5ed6b..4129ac23 100644 --- a/ioengines.c +++ b/ioengines.c @@ -126,7 +126,7 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, struct ioengine_ops *load_ioengine(struct thread_data *td, const char *name) { struct ioengine_ops *ops; - char engine[16]; + char engine[64]; dprint(FD_IO, "load ioengine %s\n", name); -- 2.25.1