Eo: Fix wrong allocation.

We weren't allocating the correct amount. Oops.

CID 1355594.
This commit is contained in:
Tom Hacohen 2016-05-23 08:36:08 +01:00
parent 85682678e6
commit 83a2ed5e70
1 changed files with 1 additions and 1 deletions

View File

@ -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