diff options
Diffstat (limited to 'xorg-server/mi/mipolypnt.c')
-rw-r--r-- | xorg-server/mi/mipolypnt.c | 2 |
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 */ |