From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- engines/sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sg.c b/engines/sg.c index c1fe602..001193d 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.5.5 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html