From 83a2ed5e700a2e44eb2a469fcb33075cfc0b114b Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 23 May 2016 08:36:08 +0100 Subject: [PATCH] Eo: Fix wrong allocation. We weren't allocating the correct amount. Oops. CID 1355594. --- src/lib/eo/eo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index a8dde5f..8ff5f4a 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -833,7 +833,7 @@ static void _vtable_init(Eo_Vtable *vtable, size_t size) { vtable->size = size; - vtable->chain = calloc(vtable->size, sizeof(vtable->chain)); + vtable->chain = calloc(vtable->size, sizeof(*vtable->chain)); } static void -- 2.7.4