summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-09 16:39:28 +0100
committerMichael Stahl <mstahl@redhat.com>2013-10-09 18:33:22 +0000
commitb5c24f1bfdb98d19f2233d6296a80a68a533c820 (patch)
tree8e706abd155c756827003bed775c1b31caa8fc1b
parentac48e8c589233962bc68644b30bb184c3b0ee321 (diff)
CID#736174 yikes, sizeof(char[]) includes 0, so 4 not 3
Change-Id: Ia54ecab9e08485ebffe98dc064f328360c17a120 (cherry picked from commit 8254648828e4f4d65a0516e160e5732f3d85765a) Reviewed-on: https://gerrit.libreoffice.org/6174 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--filter/source/msfilter/msvbahelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index cdfa730bdbeb..d52a775acdf9 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -621,7 +621,7 @@ bool getModifier( char c, sal_uInt16& mod )
static const char modifiers[] = "+^%";
static const sal_uInt16 KEY_MODS[] = {KEY_SHIFT, KEY_MOD1, KEY_MOD2};
- for ( unsigned int i=0; i<SAL_N_ELEMENTS(modifiers); ++i )
+ for ( unsigned int i=0; i<SAL_N_ELEMENTS(KEY_MODS); ++i )
{
if ( c == modifiers[i] )
{