From: Tomohiro Kusumi Date: Fri, 29 Jul 2016 15:06:00 +0000 (+0900) Subject: Use larger local buffer for I/O engine name X-Git-Tag: fio-2.14~70 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=aa2b823c02031be3d7edf0a569ed90882a8411c3;ds=inline 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 --- 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);