Eo: Fix wrong allocation.
authorTom Hacohen <tom@stosb.com>
Mon, 23 May 2016 07:36:08 +0000 (08:36 +0100)
committerTom Hacohen <tom@stosb.com>
Mon, 23 May 2016 07:36:16 +0000 (08:36 +0100)
We weren't allocating the correct amount. Oops.

CID 1355594.

src/lib/eo/eo.c

index a8dde5f..8ff5f4a 100644 (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