kdrive: prevent overrun in map
We actually need n + 1 elements for the mouse button map, not n.
This commit is contained in:
parent
eb6e8d4042
commit
9b7ecbd1dd
|
@ -258,7 +258,7 @@ struct _KdPointerInfo {
|
|||
InputOption *options;
|
||||
int inputClass;
|
||||
|
||||
CARD8 map[KD_MAX_BUTTON];
|
||||
CARD8 map[KD_MAX_BUTTON + 1];
|
||||
int nButtons;
|
||||
int nAxes;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user