From a2826e00278ef7824c821c8bd6e45e77299742e7 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 31 Dec 2015 09:39:48 -0500 Subject: driver: fix semantics of calloc() calls. --- src/driver/sfrt_driver_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver/sfrt_driver_ctx.c') diff --git a/src/driver/sfrt_driver_ctx.c b/src/driver/sfrt_driver_ctx.c index 59ee7e2..f09fd14 100644 --- a/src/driver/sfrt_driver_ctx.c +++ b/src/driver/sfrt_driver_ctx.c @@ -64,7 +64,7 @@ static struct sfrt_driver_ctx_impl * sfrt_driver_ctx_alloc( size = sizeof(struct sfrt_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