summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-03-18 12:00:23 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-03-18 12:00:23 +0000
commit3552bfe2ff14a9107fcac8e767b83d0c30d0c72d (patch)
tree662822f3b39f458de1cb2e80d2ecebfd9f430d73
parentacef27cf84f982c61a5c3db85b743f21a6538d65 (diff)
-rw-r--r--src/XGetProp.c2
1 files changed, 1 insertions, 1 deletions
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;