summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/driver/pe_driver_ctx.c2
-rw-r--r--src/driver/pe_unit_ctx.c2
2 files changed, 2 insertions, 2 deletions
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)
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index b26c5ba..40b2a33 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -26,7 +26,7 @@ int pe_get_unit_ctx(
struct pe_unit_ctx_impl * ctx;
int prot;
- if (!dctx || !(ctx = calloc(sizeof(*ctx),1)))
+ if (!dctx || !(ctx = calloc(1,sizeof(*ctx))))
return -1;
prot = (dctx->cctx->actflags & PERK_ACTION_MAP_READWRITE)