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)
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
833_vtable_init(Eo_Vtable *vtable, size_t size) 833_vtable_init(Eo_Vtable *vtable, size_t size)
834{ 834{
835 vtable->size = size; 835 vtable->size = size;
836 vtable->chain = calloc(vtable->size, sizeof(vtable->chain)); 836 vtable->chain = calloc(vtable->size, sizeof(*vtable->chain));
837} 837}
838 838
839static void 839static void