summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-21 15:07:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-21 15:07:13 +0100
commitdda78fb69cda3901b1da40de206c491a871b1854 (patch)
tree405021712f6603d8a0f68170bb877cacd5b1dd98
parent5c938857c4bf69eb65b77ff3a862f50ab4a04af7 (diff)
coverity#1312086 Out-of-bounds read
Change-Id: I7885f8ba5ec4c6e60d88f6caab0c25cb760529ef
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index fb24a2512815..2fabadc2a699 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -89,7 +89,7 @@ class FileViewContainer : public vcl::Window
if( !m_pFileView || !m_pTreeView )
return;
- if( !bReverse && m_nCurrentFocus < 4 )
+ if( !bReverse && m_nCurrentFocus < 3 )
{
m_pFocusWidgets[++m_nCurrentFocus]->SetFakeFocus( true );
m_pFocusWidgets[m_nCurrentFocus]->GrabFocus();