mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-04 06:15:07 +00:00 
			
		
		
		
	Wayland: Fix a wrong array size for _GLFWofferWayland
This commit is contained in:
		
							parent
							
								
									dd8a678a66
								
							
						
					
					
						commit
						9e0b75a70e
					
				@ -1640,7 +1640,8 @@ static void dataDeviceHandleDataOffer(void* userData,
 | 
			
		||||
                                      struct wl_data_offer* offer)
 | 
			
		||||
{
 | 
			
		||||
    _GLFWofferWayland* offers =
 | 
			
		||||
        _glfw_realloc(_glfw.wl.offers, _glfw.wl.offerCount + 1);
 | 
			
		||||
        _glfw_realloc(_glfw.wl.offers,
 | 
			
		||||
                      sizeof(_GLFWofferWayland) * (_glfw.wl.offerCount + 1));
 | 
			
		||||
    if (!offers)
 | 
			
		||||
    {
 | 
			
		||||
        _glfwInputError(GLFW_OUT_OF_MEMORY, NULL);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user