From b646592928e518afcdc864fa22bcd3571f93af61 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 5 Sep 2013 10:46:58 +0100 Subject: Allocate correct amount of mem for pointers to imagemaps. --- render/imagemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/imagemap.c b/render/imagemap.c index 379d6583d..e50ed6cb6 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -141,7 +141,7 @@ bool imagemap_create(html_content *c) assert(c != NULL); if (c->imagemaps == NULL) { - c->imagemaps = calloc(HASH_SIZE, sizeof(struct imagemap)); + c->imagemaps = calloc(HASH_SIZE, sizeof(struct imagemap *)); if (c->imagemaps == NULL) { return false; } -- cgit v1.2.3