From 4c61bf84b11e26e6f22648668c95ea760a379163 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 11 Jun 2010 12:14:52 +0000 Subject: xserver git update 11/6/2010 --- xorg-server/mi/miarc.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'xorg-server/mi/miarc.c') diff --git a/xorg-server/mi/miarc.c b/xorg-server/mi/miarc.c index 3b4a628e4..c564eb3db 100644 --- a/xorg-server/mi/miarc.c +++ b/xorg-server/mi/miarc.c @@ -1561,7 +1561,7 @@ miGetArcPts( cdt = 2 * miDcos(dt); if (!(poly = (SppPointPtr) realloc((pointer)*ppPts, (cpt + count) * sizeof(SppPointRec)))) - return(0); + return 0; *ppPts = poly; xc = parc->width/2.0; /* store half width and half height */ @@ -1598,7 +1598,7 @@ miGetArcPts( poly[cpt +i -1].y = (miDsin(st + et) * parc->height/2.0 + yc); } - return(count); + return count; } struct arcData { @@ -3081,10 +3081,8 @@ fillSpans ( (*pGC->ops->FillSpans) (pDrawable, pGC, i, xSpans, xWidths, TRUE); } disposeFinalSpans (); - if (xSpans) - free(xSpans); - if (xWidths) - free(xWidths); + free(xSpans); + free(xWidths); finalMiny = 0; finalMaxy = -1; finalSize = 0; @@ -3135,9 +3133,9 @@ realFindSpan (int y) free(finalSpans); } if ((i = finalMiny - newMiny) > 0) - bzero ((char *)newSpans, i * sizeof (struct finalSpan *)); + memset((char *)newSpans, 0, i * sizeof (struct finalSpan *)); if ((i = newMaxy - finalMaxy) > 0) - bzero ((char *)(newSpans + newSize - i), + memset((char *)(newSpans + newSize - i), 0, i * sizeof (struct finalSpan *)); finalSpans = newSpans; finalMaxy = newMaxy; -- cgit v1.2.3