summaryrefslogtreecommitdiff
path: root/src/XGetProp.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-04-23 18:43:44 +0000
committerEgbert Eich <eich@suse.de>2004-04-23 18:43:44 +0000
commitc1990aed3deb74e3bec72a99bf43debe53d8506a (patch)
tree662822f3b39f458de1cb2e80d2ecebfd9f430d73 /src/XGetProp.c
parent1ca71687d852a2aba9389f71af0c9df396bbb4b3 (diff)
Diffstat (limited to 'src/XGetProp.c')
-rw-r--r--src/XGetProp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XGetProp.c b/src/XGetProp.c
index 8eeb1b0..ed5a2d1 100644
--- a/src/XGetProp.c
+++ b/src/XGetProp.c
@@ -45,7 +45,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
********************************************************/
-/* $XFree86: xc/lib/Xi/XGetProp.c,v 3.4 2002/10/16 00:37:29 dawes Exp $ */
+/* $XFree86: xc/lib/Xi/XGetProp.c,v 3.3 2001/12/14 19:55:17 dawes Exp $ */
/***********************************************************************
*
@@ -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;