mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
Typo in ALLLOCATE_LOCAL() arguments, causing mis-computation of the buffer.
Bugzilla #6642.
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user