summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c
index 0523cf9db..d0e3debe0 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -2162,7 +2162,7 @@ static bool layout_text_box_split(html_content *content,
}
/* Create clone of split_box, c2 */
- c2 = talloc_memdup(content, split_box, sizeof *c2);
+ c2 = talloc_memdup(content->bctx, split_box, sizeof *c2);
if (!c2)
return false;
c2->flags |= CLONE;
@@ -2172,7 +2172,7 @@ static bool layout_text_box_split(html_content *content,
/* Inside a form text input / textarea, special case */
/* TODO: Move text inputs to core textarea widget and remove
* this */
- c2->text = talloc_strndup(content,
+ c2->text = talloc_strndup(content->bctx,
split_box->text + new_length + 1,
split_box->length - (new_length + 1));
if (!c2->text)