From 4a991716ac65d28a68f9943d54c4b74ad0b58f65 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 29 May 2016 12:02:41 +0000 Subject: Update to xserver 1.18.3. Tested by shadchin@ and naddy@. Note that indirect GLX is now disbled by default. --- xserver/dix/events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xserver/dix/events.c') diff --git a/xserver/dix/events.c b/xserver/dix/events.c index 150620f59..efaf91d2b 100644 --- a/xserver/dix/events.c +++ b/xserver/dix/events.c @@ -4786,8 +4786,8 @@ SetInputFocus(ClientPtr client, depth++; if (depth > focus->traceSize) { focus->traceSize = depth + 1; - focus->trace = realloc(focus->trace, - focus->traceSize * sizeof(WindowPtr)); + focus->trace = reallocarray(focus->trace, focus->traceSize, + sizeof(WindowPtr)); } focus->traceGood = depth; for (pWin = focusWin, depth--; pWin; pWin = pWin->parent, depth--) -- cgit v1.2.3