From 3f9760a2d2d733e214d8364045b64c093e127c43 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 16 May 2011 10:15:19 +0200 Subject: avoid array overrun --- vcl/unx/gtk/app/gtkdata.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] ) -- cgit v1.2.3