diff options
Diffstat (limited to 'xserver/Xext/xcmisc.c')
-rw-r--r-- | xserver/Xext/xcmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/Xext/xcmisc.c b/xserver/Xext/xcmisc.c index 1e9101059..ed25650cd 100644 --- a/xserver/Xext/xcmisc.c +++ b/xserver/Xext/xcmisc.c @@ -101,7 +101,7 @@ ProcXCMiscGetXIDList(ClientPtr client) if (stuff->count > UINT32_MAX / sizeof(XID)) return BadAlloc; - pids = (XID *) malloc(stuff->count * sizeof(XID)); + pids = xallocarray(stuff->count, sizeof(XID)); if (!pids) { return BadAlloc; } |