diff options
-rw-r--r-- | src/Cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cursor.c b/src/Cursor.c index cbb3d6b..dac1f1c 100644 --- a/src/Cursor.c +++ b/src/Cursor.c @@ -128,7 +128,7 @@ XFixesGetCursorImage (Display *dpy) image->atom = rep.cursorName; name = (char *) (image->pixels + npixels); image->name = name; - _XRead32 (dpy, image->pixels, npixels << 2); + _XRead32 (dpy, (long *) image->pixels, npixels << 2); _XRead (dpy, name, nbytes_name); name[nbytes_name] = '\0'; /* null-terminate */ /* skip any padding */ |