summaryrefslogtreecommitdiff
path: root/Xi/getdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/getdctl.c')
-rw-r--r--Xi/getdctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/getdctl.c b/Xi/getdctl.c
index 68181fa61..3e81e9479 100644
--- a/Xi/getdctl.c
+++ b/Xi/getdctl.c
@@ -281,7 +281,7 @@ ProcXGetDeviceControl(ClientPtr client)
return BadValue;
}
- buf = (char *)xalloc(total_length);
+ buf = (char *)malloc(total_length);
if (!buf)
return BadAlloc;
savbuf = buf;
@@ -309,6 +309,6 @@ ProcXGetDeviceControl(ClientPtr client)
rep.length = bytes_to_int32(total_length);
WriteReplyToClient(client, sizeof(xGetDeviceControlReply), &rep);
WriteToClient(client, total_length, savbuf);
- xfree(savbuf);
+ free(savbuf);
return Success;
}