summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/plugin_hack.c2
-rw-r--r--render/box_construct.c2
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;