Avoid an oob read

This commit is contained in:
Matthias Clasen
2011-06-14 21:56:50 -04:00
parent f68c073e33
commit 5254fbacfb

View File

@ -168,7 +168,7 @@ translate_valuator_class (GdkDisplay *display,
initialized = TRUE; initialized = TRUE;
} }
for (i = GDK_AXIS_IGNORE; i <= GDK_AXIS_LAST; i++) for (i = GDK_AXIS_IGNORE; i < GDK_AXIS_LAST; i++)
{ {
if (label_atoms[i] == info->label) if (label_atoms[i] == info->label)
{ {