(maybe) fix for bug #5950. Though, I'm not convinced and still don't
    see how this bug could be happening, especially if this doesn't do it.
This commit is contained in:
Zephaniah E. Hull
2006-02-20 09:18:56 +00:00
parent c6dbf89d9d
commit 763edd3730
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
2006-02-20 Zephaniah E. Hull,,, <warp@aehallh.com>
* src/evdev_btn.c: (EvdevBtnInit):
Bugzilla #5950 <https://bugs.freedesktop.org/show_bug.cgi=5950>
Possible (maybe) fix for bug #5950.
Though, I'm not convinced and still don't see how this bug could
be happening, especially if this doesn't do it.
2006-02-19 Zephaniah E. Hull <warp@aehallh.com>
* src/evdev_key.c: (EvdevKbdBell):

View File

@@ -87,9 +87,9 @@ EvdevBtnInit (DeviceIntPtr device)
if (!pEvdev->state.buttons)
return Success;
map = Xcalloc (sizeof (CARD8) * pEvdev->state.buttons);
map = Xcalloc (sizeof (CARD8) * (pEvdev->state.buttons + 1));
for (i = 0; i < pEvdev->state.buttons; i++)
for (i = 0; i <= pEvdev->state.buttons; i++)
map[i] = i;
xf86Msg(X_ERROR, "%s (%d): Registering %d buttons.\n", __FILE__, __LINE__,