fix potential (tiny, hard to trigger) overrun (bug 338254)
2006-04-17 Ray Strode <rstrode@redhat.com> * gnome-settings-mouse.c (configure_button_layout): fix potential (tiny, hard to trigger) overrun (bug 338254)
This commit is contained in:
parent
01b8b21d05
commit
8aa8b24d82
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-04-17 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
* gnome-settings-mouse.c (configure_button_layout): fix
|
||||
potential (tiny, hard to trigger) overrun (bug 338254)
|
||||
|
||||
2006-04-10 Marien Zwart <marienz@gentoo.org>
|
||||
|
||||
Fixes #323724
|
||||
|
|
|
@ -70,7 +70,9 @@ configure_button_layout (guchar *buttons,
|
|||
}
|
||||
/* swap the buttons */
|
||||
buttons[left_button - 1] = right_button;
|
||||
buttons[i] = left_button;
|
||||
|
||||
if (i != n_buttons)
|
||||
buttons[i] = left_button;
|
||||
}
|
||||
/* check if we are not left_handed but are swapped */
|
||||
else if (!left_handed && buttons[left_button - 1] == right_button)
|
||||
|
@ -82,7 +84,9 @@ configure_button_layout (guchar *buttons,
|
|||
break;
|
||||
}
|
||||
/* swap the buttons */
|
||||
buttons[i] = right_button;
|
||||
if (i != n_buttons)
|
||||
buttons[i] = right_button;
|
||||
|
||||
buttons[left_button - 1] = left_button;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue