summaryrefslogtreecommitdiff
path: root/src/Xrender.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xrender.c')
-rw-r--r--src/Xrender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xrender.c b/src/Xrender.c
index 769503a..5c8e5f5 100644
--- a/src/Xrender.c
+++ b/src/Xrender.c
@@ -475,7 +475,7 @@ XRenderQueryFormats (Display *dpy)
{
if (xri) Xfree (xri);
if (xData) Xfree (xData);
- _XEatData (dpy, nbytes);
+ _XEatDataWords (dpy, rep.length);
UnlockDisplay (dpy);
SyncHandle ();
return 0;
@@ -859,7 +859,7 @@ XRenderQueryPictIndexValues(Display *dpy,
values = (XIndexValue *)Xmalloc (rlength);
if (!values)
{
- _XEatData (dpy, nbytes);
+ _XEatDataWords (dpy, rep.length);
UnlockDisplay (dpy);
SyncHandle ();
return NULL;