commit 7b575f8841b25b3870b2c0a36b9fcefb20f4eb30
parent b71a1495de66feba899a88a76b8a6ed8c9b8f75f
Author: vaplv <vaplv@free.fr>
Date: Fri, 31 Oct 2014 16:41:29 +0100
Fix a memory initialisation issue
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test_polygon.c b/src/test_polygon.c
@@ -37,7 +37,7 @@ check_triangulation
contour = mem_calloc(nedges_contour, sizeof(char));
NCHECK(contour, NULL);
- memset(contour, 0, sizeof(contour));
+ memset(contour, 0, nedges_contour * sizeof(char));
CHECK(nindices % 3, 0);
FOR_EACH(i, 0, nindices/3) {
const uint32_t* tri = indices + (i*3);