summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@epoch.ncsc.mil>2004-05-04 19:42:51 +0000
committerEamon Walsh <ewalsh@epoch.ncsc.mil>2004-05-04 19:42:51 +0000
commit0c3c313ef3872923b7c0c2eba078b7c4c4c62fff (patch)
tree662822f3b39f458de1cb2e80d2ecebfd9f430d73
parentf1be04c808090763c1414b5f08b7b347498d2703 (diff)
downloadxorg-lib-libXi-XACE-SELINUX.tar.gz
Merge the new release from HEADXACE-SELINUX
-rw-r--r--src/XGetProp.c2
-rw-r--r--src/XSelect.c2
2 files changed, 2 insertions, 2 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;
diff --git a/src/XSelect.c b/src/XSelect.c
index d8280e2..c0a8dc8 100644
--- a/src/XSelect.c
+++ b/src/XSelect.c
@@ -86,7 +86,7 @@ XSelectExtensionEvent (dpy, w, event_list, count)
statement */
count <<= 2;
- Data (dpy, (char *) event_list, count);
+ Data32 (dpy, (long *) event_list, count);
UnlockDisplay(dpy);
SyncHandle();