summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:17:54 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:46 +0000
commitfb32bb9839b615f7297fbfac2050bc216682f01c (patch)
treed3a42e59ec9cc0b43b8a6930578ab97c09d6e197 /Xi
parent683ee1776d172035c465aa8fc84ccd53bb8ba7fd (diff)
Xi: Remove usage of alloca
Replace with xalloc/xfree.
Diffstat (limited to 'Xi')
-rw-r--r--Xi/gtmotion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/gtmotion.c b/Xi/gtmotion.c
index 51d4248cd..ad2bec391 100644
--- a/Xi/gtmotion.c
+++ b/Xi/gtmotion.c
@@ -135,7 +135,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
if (num_events) {
size = sizeof(Time) + (axes * sizeof(INT32));
tsize = num_events * size;
- coords = (INT32 *) ALLOCATE_LOCAL(tsize);
+ coords = (INT32 *) xalloc(tsize);
if (!coords)
return BadAlloc;
rep.nEvents = (v->GetMotionProc) (dev, (xTimecoord *) coords, /* XXX */
@@ -161,7 +161,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
WriteToClient(client, length * 4, (char *)coords);
}
if (coords)
- DEALLOCATE_LOCAL(coords);
+ xfree(coords);
return Success;
}