Signed-off-by: Laércio de Sousa <[email protected]> --- src/nested_input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/nested_input.c b/src/nested_input.c index 9d2e0d3..0d584c8 100644 --- a/src/nested_input.c +++ b/src/nested_input.c @@ -27,6 +27,7 @@ * Colin Hill <[email protected]> * Weseung Hwang <[email protected]> * Nathaniel Way <[email protected]> + * Laércio de Sousa <[email protected]> */ #include <errno.h> @@ -192,7 +193,7 @@ _nested_input_init_buttons(DeviceIntPtr device) { CARD8 *map; Atom buttonLabels[NUM_MOUSE_BUTTONS] = {0}; - map = calloc(NUM_MOUSE_BUTTONS, sizeof(CARD8)); + map = calloc(NUM_MOUSE_BUTTONS + 1, sizeof(CARD8)); int i; for (i = 0; i < NUM_MOUSE_BUTTONS; i++) -- 2.1.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
