summaryrefslogtreecommitdiff
path: root/render/mitri.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2006-05-02 14:09:30 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2006-05-02 14:09:30 +0000
commitb9a9cf618566bdd796556b8a1f31949f66184352 (patch)
tree157c7c5db5242a9883a13e95b09271075f7e68f8 /render/mitri.c
parent1e8a594957d84a37e66183e9c0cb9d42b62bdb24 (diff)
Typo in ALLLOCATE_LOCAL() arguments, causing mis-computation of the buffer.
Bugzilla #6642.
Diffstat (limited to 'render/mitri.c')
-rw-r--r--render/mitri.c4
1 files 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++;