Re: [PATCH] tristrip: Correctly resize points array

"Henry (Yu) Song - SISA" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <3955FA337689574EB32F94B12A7E6E9E0B1902B6@ex10mail>
Hi, Martin

Can you forward comments to [email protected],  I still don't get your forwarded message.

Thanks

Henry

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Robinson
Sent: Friday, October 14, 2011 4:41 PM
To: [email protected]
Subject: [cairo] [PATCH] tristrip: Correctly resize points array

cairo_tristrip_t grows its array of points using realloc.
Use the size of cairo_point_t instead of cairo_trapezoid_t
to size the new array.
---
 src/cairo-tristrip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-tristrip.c b/src/cairo-tristrip.c
index bb4972f..da08267 100644
--- a/src/cairo-tristrip.c
+++ b/src/cairo-tristrip.c
@@ -98,7 +98,7 @@ _cairo_tristrip_grow (cairo_tristrip_t *strip)
 	    memcpy (points, strip->points, sizeof (strip->points_embedded));
     } else {
 	points = _cairo_realloc_ab (strip->points,
-	                               new_size, sizeof (cairo_trapezoid_t));
+				    new_size, sizeof (cairo_point_t));
     }
      if (unlikely (points == NULL)) {
-- 
1.7.4.1

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.