diff options
author | James Bursa <james@netsurf-browser.org> | 2002-09-08 18:11:56 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2002-09-08 18:11:56 +0000 |
commit | a46eef0002d061c3363756182a592be7646ae79b (patch) | |
tree | 3d347fb9f3dac906b2987c8eb20d8d6bbfd1ab22 /render/layout.c | |
parent | a21d245091e7f7d6ae6a9e08dc107b9dd495e4fb (diff) | |
download | netsurf-a46eef0002d061c3363756182a592be7646ae79b.tar.gz netsurf-a46eef0002d061c3363756182a592be7646ae79b.tar.bz2 |
[project @ 2002-09-08 18:11:56 by bursa]
Add box_free().
svn path=/import/netsurf/; revision=32
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/layout.c b/render/layout.c index f2548d3cc..7d15fb11b 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1,5 +1,5 @@ /** - * $Id: layout.c,v 1.13 2002/08/18 16:46:45 bursa Exp $ + * $Id: layout.c,v 1.14 2002/09/08 18:11:56 bursa Exp $ */ #include <assert.h> @@ -370,7 +370,7 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long b = c->next; } else { c2 = memcpy(xcalloc(1, sizeof(struct box)), c, sizeof(struct box)); - c2->text = space + 1; + c2->text = xstrdup(space + 1); c2->length = c->length - (c2->text - c->text); c->length = space - c->text; c2->next = c->next; @@ -394,7 +394,7 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long w = font_width(c->style, c->text, space2 - c->text); } c2 = memcpy(xcalloc(1, sizeof(struct box)), c, sizeof(struct box)); - c2->text = space + 1; + c2->text = xstrdup(space + 1); c2->length = c->length - (c2->text - c->text); c->length = space - c->text; c2->next = c->next; |