xfixes: let PointerBarrierClient->device_ids point to allocated memory
"Fixed" up Jasper's original patch [1] to use pointers instead of
zero-length arrays but didn't actually set the pointer to anywhere.
[1] 9a536820f6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-By: Jasper St. Pierre <jstpierre@mecheye.net>
			
			
This commit is contained in:
		
							parent
							
								
									aa9a9ad08b
								
							
						
					
					
						commit
						0ff1c77b17
					
				| 
						 | 
					@ -1300,6 +1300,10 @@ CreatePointerBarrierClient(ScreenPtr screen, ClientPtr client,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ret->screen = screen;
 | 
					    ret->screen = screen;
 | 
				
			||||||
    ret->num_devices = stuff->num_devices;
 | 
					    ret->num_devices = stuff->num_devices;
 | 
				
			||||||
 | 
					    if (ret->num_devices > 0)
 | 
				
			||||||
 | 
					        ret->device_ids = (int*)&ret[1];
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        ret->device_ids = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    in_devices = (CARD16 *) &stuff[1];
 | 
					    in_devices = (CARD16 *) &stuff[1];
 | 
				
			||||||
    for (i = 0; i < stuff->num_devices; i++) {
 | 
					    for (i = 0; i < stuff->num_devices; i++) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue