aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index fb22f683..0266bc10 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -901,7 +901,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx)
901 901
902 i = 0; 902 i = 0;
903 while (i < len) { 903 while (i < len) {
904 e = (struct drm_event *) &buffer[i]; 904 e = (struct drm_event *)(buffer + i);
905 switch (e->type) { 905 switch (e->type) {
906 case DRM_EVENT_VBLANK: 906 case DRM_EVENT_VBLANK:
907 if (evctx->version < 1 || 907 if (evctx->version < 1 ||