aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/getprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/getprop.c')
-rw-r--r--xorg-server/Xi/getprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/Xi/getprop.c b/xorg-server/Xi/getprop.c
index 4d6ce6338..19f18af21 100644
--- a/xorg-server/Xi/getprop.c
+++ b/xorg-server/Xi/getprop.c
@@ -118,7 +118,7 @@ ProcXGetDeviceDontPropagateList(ClientPtr client)
ClassFromMask(NULL, others->dontPropagateMask[i], i, &count, COUNT);
if (count) {
rep.count = count;
- buf = (XEventClass *) malloc(rep.count * sizeof(XEventClass));
+ buf = xallocarray(rep.count, sizeof(XEventClass));
rep.length = bytes_to_int32(rep.count * sizeof(XEventClass));
tbuf = buf;