summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-16 10:15:19 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-16 15:40:43 +0200
commit3f9760a2d2d733e214d8364045b64c093e127c43 (patch)
tree5cda815b2fa3efec20a190f6985c829fc53833dc
parent85c7d05e6332d444933156a030d5103546794509 (diff)
avoid array overrun
-rw-r--r--vcl/unx/gtk/app/gtkdata.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 50fa4c9d60..269402530f 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -358,7 +358,7 @@ GdkCursor* GtkSalDisplay::getFromXPM( const unsigned char *pBitmap,
GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle )
{
- if( ePointerStyle > POINTER_COUNT )
+ if( ePointerStyle >= POINTER_COUNT )
return NULL;
if ( !m_aCursors[ ePointerStyle ] )