xi2: Fix access beyond array boundaries
This commit is contained in:
parent
e711709ab0
commit
069abd1122
@ -94,13 +94,13 @@ translate_valuator_class (Display *xdisplay,
|
|||||||
atoms_initialized = TRUE;
|
atoms_initialized = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = CLUTTER_INPUT_AXIS_IGNORE;
|
for (i = 0;
|
||||||
i < CLUTTER_INPUT_AXIS_LAST;
|
i < N_AXIS_ATOMS;
|
||||||
i += 1)
|
i += 1)
|
||||||
{
|
{
|
||||||
if (clutter_input_axis_atoms[i] == class->label)
|
if (clutter_input_axis_atoms[i] == class->label)
|
||||||
{
|
{
|
||||||
axis = i;
|
axis = i + 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user