From ffcd00b75aa6515256ae5f843ae4ef1e7dca435c Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 31 Dec 2015 09:37:37 -0500 Subject: driver: fix semantics of calloc() calls. --- src/driver/pe_driver_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver/pe_driver_ctx.c') diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index 1e6fa98..7ef837e 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -65,7 +65,7 @@ static struct pe_driver_ctx_impl * pe_driver_ctx_alloc( size = sizeof(struct pe_driver_ctx_alloc); size += (nunits+1)*sizeof(const char *); - if (!(ictx = calloc(size,1))) + if (!(ictx = calloc(1,size))) return 0; if (cctx) -- cgit v1.2.3