kdrive: prevent overrun in map

We actually need n + 1 elements for the mouse button map, not n.
This commit is contained in:
Daniel Stone 2006-08-07 21:09:32 +03:00 committed by Daniel Stone
parent eb6e8d4042
commit 9b7ecbd1dd

View File

@ -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;