Index: plugins/mouse_plugin/mouse_plugin.c =================================================================== --- plugins/mouse_plugin/mouse_plugin.c (revision 26490) +++ plugins/mouse_plugin/mouse_plugin.c (working copy) @@ -207,7 +207,7 @@ set_xinput_mouse_values (gboolean right_ n_buttons = XGetDeviceButtonMapping (GDK_DISPLAY (), device, buttons, DEFAULT_PTR_MAP_SIZE); if (n_buttons > DEFAULT_PTR_MAP_SIZE) { - buttons = g_alloca (n_buttons); + buttons = g_realloc (buttons, n_buttons); n_buttons = XGetDeviceButtonMapping (GDK_DISPLAY (), device, buttons, n_buttons); }