diff --git a/src/wayland-eglsurface.c b/src/wayland-eglsurface.c index 72c0863..e1da47a 100644 --- a/src/wayland-eglsurface.c +++ b/src/wayland-eglsurface.c @@ -500,7 +500,7 @@ buffer_release_thread(void *args) } if (pfds[1].revents & POLLIN) { - if (read(pfds[1].fd, &cmd, sizeof(cmd) != sizeof(cmd))) { + if (read(pfds[1].fd, &cmd, sizeof(cmd)) != sizeof(cmd)) { /* Reading an event from the app side failed. Bail. */ wl_display_cancel_read(wlDpy); return NULL;