summaryrefslogtreecommitdiff
path: root/xserver/mi/mipolypnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/mi/mipolypnt.c')
-rw-r--r--xserver/mi/mipolypnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/mi/mipolypnt.c b/xserver/mi/mipolypnt.c
index 4fa521d07..1c4150dfb 100644
--- a/xserver/mi/mipolypnt.c
+++ b/xserver/mi/mipolypnt.c
@@ -67,7 +67,7 @@ miPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, /* Origin or Previous */
int i;
xPoint *ppt;
- if (!(pwidthInit = malloc(npt * sizeof(int))))
+ if (!(pwidthInit = xallocarray(npt, sizeof(int))))
return;
/* make pointlist origin relative */