summaryrefslogtreecommitdiff
path: root/dix/enterleave.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-03-21 10:52:29 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-04-21 16:57:08 -0700
commitb9e665c8b2f048feb3064ce412e0b3e9eb6797b0 (patch)
tree97111c1af95c9914c8843ce9fd904d13f044cba0 /dix/enterleave.c
parentdf4e41fdb47cdeab5155224557ed8ab4ec4dc659 (diff)
Convert dix/* to new *allocarray functions
v2: remove now useless parentheses Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'dix/enterleave.c')
-rw-r--r--dix/enterleave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/enterleave.c b/dix/enterleave.c
index 54f4b8554..7f1f94165 100644
--- a/dix/enterleave.c
+++ b/dix/enterleave.c
@@ -714,7 +714,7 @@ DeliverStateNotifyEvent(DeviceIntPtr dev, WindowPtr win)
}
}
- sev = ev = (deviceStateNotify *) malloc(evcount * sizeof(xEvent));
+ sev = ev = xallocarray(evcount, sizeof(xEvent));
FixDeviceStateNotify(dev, ev, NULL, NULL, NULL, first);
if (b != NULL) {