Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130979 | Differences between
and this patch

Collapse All | Expand All

(-)xc/programs/Xserver/render/mitri.c (-2 / +2 lines)
Lines 145-151 Link Here
145
    if (npoint < 3)
145
    if (npoint < 3)
146
	return;
146
	return;
147
    ntri = npoint - 2;
147
    ntri = npoint - 2;
148
    tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
148
    tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
149
    if (!tris)
149
    if (!tris)
150
	return;
150
	return;
151
    for (tri = tris; npoint >= 3; npoint--, points++, tri++)
151
    for (tri = tris; npoint >= 3; npoint--, points++, tri++)
Lines 177-183 Link Here
177
    if (npoint < 3)
177
    if (npoint < 3)
178
	return;
178
	return;
179
    ntri = npoint - 2;
179
    ntri = npoint - 2;
180
    tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
180
    tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
181
    if (!tris)
181
    if (!tris)
182
	return;
182
	return;
183
    first = points++;
183
    first = points++;

Return to bug 130979