diff options
Diffstat (limited to 'Xext/xcmisc.c')
-rw-r--r-- | Xext/xcmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xcmisc.c b/Xext/xcmisc.c index 1e9101059..ed25650cd 100644 --- a/Xext/xcmisc.c +++ b/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; } |