From 4252055ed233b7ff9ad3c3e5d0bd988646915fbb Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Wed, 17 Mar 2004 09:02:58 +0000 Subject: 41. Fix for insufficient allocation of a list in GetDeviceDontPropagateList() on 64bit machines (Andreas Luik). --- src/XGetProp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XGetProp.c b/src/XGetProp.c index 8560108..ed5a2d1 100644 --- a/src/XGetProp.c +++ b/src/XGetProp.c @@ -93,7 +93,7 @@ XEventClass if (*count) { rlen = rep.length << 2; - list = (XEventClass *) Xmalloc (rlen); + list = (XEventClass *) Xmalloc (rep.length * sizeof(XEventClass)); if (list) { int i; -- cgit v1.2.3