summaryrefslogtreecommitdiff
path: root/src/XGetProp.c
diff options
context:
space:
mode:
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;