aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/mi/mipolypnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/mi/mipolypnt.c')
-rw-r--r--xorg-server/mi/mipolypnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/mi/mipolypnt.c b/xorg-server/mi/mipolypnt.c
index 4fa521d07..1c4150dfb 100644
--- a/xorg-server/mi/mipolypnt.c
+++ b/xorg-server/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 */