Files
xserver/dix
Keith Packard 34cf559bcf ProcGetPointerMapping uses rep.nElts before it is initialized
In:

	commit d792ac125a
	Author: Alan Coopersmith <alan.coopersmith@oracle.com>
	Date:   Mon Jul 9 19:12:43 2012 -0700

	    Use C99 designated initializers in dix Replies

the initializer for the .length element of the xGetPointerMappingReply
structure uses the value of rep.nElts, but that won't be set until
after this initializer runs, so we get garbage in the length element
and clients using it will generally wedge.

Easy to verify:

	$ xmodmap -pp

Fixed by creating a local nElts variable and using that.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-10 23:07:06 -07:00
..
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2012-07-06 10:35:13 +01:00
2012-03-21 13:54:42 -07:00
2012-07-05 13:39:50 -07:00
2012-05-01 11:36:30 +10:00
2012-07-06 10:35:13 +01:00
2009-08-28 23:29:05 -04:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2012-03-22 11:33:42 +10:00