From: Tomohiro Kusumi Date: Tue, 3 Jan 2017 14:40:05 +0000 (+0900) Subject: Fix trivial calloc argument order X-Git-Tag: fio-2.17~34 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=efa72f25ae594fd1d7f8f1b207f95143a917d8f2;ds=inline Fix trivial calloc argument order Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- 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