@ -127,7 +127,7 @@ static void pollJoystickEvents(void)
if (errno == ENODEV)
_glfwLibrary.X11.joystick[i].present = GL_FALSE;
if (result <= 0)
if (result < sizeof(e))
break;
// We don't care if it's an init event or not