summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-23 08:36:08 +0100
committerTom Hacohen <tom@stosb.com>2016-05-23 08:36:16 +0100
commit83a2ed5e700a2e44eb2a469fcb33075cfc0b114b (patch)
treee1957eed02ddc2267cdec7a21d18adf8a1daa7ea
parent85682678e6d80ff1f0fb174eef3b64a8d7575136 (diff)
downloadefl-83a2ed5e700a2e44eb2a469fcb33075cfc0b114b.tar.gz
Eo: Fix wrong allocation.
We weren't allocating the correct amount. Oops. CID 1355594.
-rw-r--r--src/lib/eo/eo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index a8dde5f11a..8ff5f4ac27 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