summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-09 16:39:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-09 16:59:52 +0100
commit8254648828e4f4d65a0516e160e5732f3d85765a (patch)
tree4860b2cd3bbe7e3323767f20dc4d98127b0cc5ab
parent333ec5789a01dfc165598ade66de518132c64865 (diff)
CID#736174 yikes, sizeof(char[]) includes 0, so 4 not 3
Change-Id: Ia54ecab9e08485ebffe98dc064f328360c17a120
-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 e143ba47ed9b..4a5576f0bed7 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -618,7 +618,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] )
{