[clutter/clutter-1.12] xi2: Fix access beyond array boundaries (cherry picked from commit 673e7c10d8c008ddf88af4746423e7897
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.12] xi2: Fix access beyond array boundaries (cherry picked from commit 673e7c10d8c008ddf88af4746423e7897
- Date: Tue, 5 Mar 2013 00:28:10 +0000 (UTC)
commit 3c017eaf28cff89d82f868b0c7d92399884c3c47
Author: Yanko Kaneti <yaneti declera com>
Date: Mon Jan 28 15:49:51 2013 +0200
xi2: Fix access beyond array boundaries
(cherry picked from commit 673e7c10d8c008ddf88af4746423e7897690ebe9)
Signed-off-by: Emmanuele Bassi <ebassi gnome org>
clutter/x11/clutter-device-manager-xi2.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
index 4250644..8a99103 100644
--- a/clutter/x11/clutter-device-manager-xi2.c
+++ b/clutter/x11/clutter-device-manager-xi2.c
@@ -94,13 +94,13 @@ translate_valuator_class (Display *xdisplay,
atoms_initialized = TRUE;
}
- for (i = CLUTTER_INPUT_AXIS_IGNORE;
- i < CLUTTER_INPUT_AXIS_LAST;
+ for (i = 0;
+ i < N_AXIS_ATOMS;
i += 1)
{
if (clutter_input_axis_atoms[i] == class->label)
{
- axis = i;
+ axis = i + 1;
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]