From efa72f25ae594fd1d7f8f1b207f95143a917d8f2 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Tue, 3 Jan 2017 23:40:05 +0900 Subject: [PATCH] Fix trivial calloc argument order Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- engines/sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sg.c b/engines/sg.c index c1fe6020..001193df 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -579,7 +579,7 @@ static char *fio_sgio_errdetails(struct io_u *io_u) char *msg, msgchunk[MAXMSGCHUNK], *ret = NULL; int i; - msg = calloc(MAXERRDETAIL, 1); + msg = calloc(1, MAXERRDETAIL); /* * can't seem to find sg_err.h, so I'll just echo the define values -- 2.25.1