diff --git a/content/hlcache.c b/content/hlcache.c index 5cba88bc6..b27e4f11e 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -826,7 +826,7 @@ nserror hlcache_handle_abort(hlcache_handle *handle) if (clone == NULL) return NSERROR_NOMEM; - entry = calloc(sizeof(struct hlcache_entry), 1); + entry = calloc(1, sizeof(struct hlcache_entry)); if (entry == NULL) { content_destroy(clone); diff --git a/content/llcache.c b/content/llcache.c index 32c7449d2..c1c704c38 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -3600,8 +3600,8 @@ llcache_object_snapshot(llcache_object *object, llcache_object **snapshot) } if (object->num_headers > 0) { - newobj->headers = calloc(sizeof(llcache_header), - object->num_headers); + newobj->headers = calloc(object->num_headers, + sizeof(llcache_header)); if (newobj->headers == NULL) { llcache_object_destroy(newobj); return NSERROR_NOMEM;