diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-11 19:28:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-11 19:29:19 +0100 |
commit | d647d4f7db1f9b65f5d7f64574b1989b830aaa7c (patch) | |
tree | 07a5ab27021149d33e64fbc3e2abf594914e61d9 /src/cairo-damage.c | |
parent | adfe9b7eb67f642cda93f80cf9c97f1eaded0317 (diff) |
damage: Update tail pointer after allocating new chunk
Reported and based on a patch by fmot.fics
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53384
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-damage.c')
-rw-r--r-- | src/cairo-damage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-damage.c b/src/cairo-damage.c index 06ef9fdf..61a58af0 100644 --- a/src/cairo-damage.c +++ b/src/cairo-damage.c @@ -128,10 +128,11 @@ _cairo_damage_add_boxes(cairo_damage_t *damage, chunk->count = count; damage->tail->next = chunk; - damage->remain = size - count; + damage->tail = chunk; memcpy (damage->tail->base, boxes + n, count * sizeof (cairo_box_t)); + damage->remain = size - count; return damage; } |