From f22da7670d22d17337c1a2aebb924305b08ede2c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 3 Oct 2012 19:41:14 +0100 Subject: [PATCH] fix missing sizeof() in amiga build fix type warning by passing correct value --- amiga/plugin_hack.c | 2 +- render/box_construct.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c index 830d2f614..f78a67e2d 100644 --- a/amiga/plugin_hack.c +++ b/amiga/plugin_hack.c @@ -100,7 +100,7 @@ nserror amiga_plugin_hack_create(const content_handler *handler, amiga_plugin_hack_content *plugin; nserror error; - plugin = calloc(1, amiga_plugin_hack_content); + plugin = calloc(1, sizeof(amiga_plugin_hack_content)); if (plugin == NULL) return NSERROR_NOMEM; diff --git a/render/box_construct.c b/render/box_construct.c index c34c0af96..8b54fc8d4 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2050,7 +2050,7 @@ bool box_frameset(BOX_SPECIAL_PARAMS) if (!content->frameset) return false; - ok = box_create_frameset(content->frameset, n, content->bctx); + ok = box_create_frameset(content->frameset, n, content); if (ok) box->type = BOX_NONE;