From 30c597535ec78df1241f19aa17bc637abd9aba96 Mon Sep 17 00:00:00 2001 From: David Reveman Date: Wed, 10 May 2006 09:42:44 +0000 Subject: [PATCH] Typo in ALLLOCATE_LOCAL() arguments, causing mis-computation of the buffer. Bugzilla #6642. --- render/mitri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/mitri.c b/render/mitri.c index 974225350..bc2641895 100644 --- a/render/mitri.c +++ b/render/mitri.c @@ -145,7 +145,7 @@ miTriStrip (CARD8 op, if (npoint < 3) return; ntri = npoint - 2; - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle)); + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle)); if (!tris) return; for (tri = tris; npoint >= 3; npoint--, points++, tri++) @@ -177,7 +177,7 @@ miTriFan (CARD8 op, if (npoint < 3) return; ntri = npoint - 2; - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle)); + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle)); if (!tris) return; first = points++;