summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/render.c b/render/render.c
index 8487b60de..5622994e3 100644
--- a/render/render.c
+++ b/render/render.c
@@ -1857,7 +1857,7 @@ ProcRenderCreateAnimCursor (ClientPtr client)
elt = (xAnimCursorElt *) (stuff + 1);
for (i = 0; i < ncursor; i++)
{
- ret = dixLookupResourceByType((pointer *)(cursors + 1), elt->cursor,
+ ret = dixLookupResourceByType((pointer *)(cursors + i), elt->cursor,
RT_CURSOR, client, DixReadAccess);
if (ret != Success)
{