diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 16:39:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-14 10:58:48 +0000 |
commit | 991a4daa1e59c46847b289b6bd9f273145fd5646 (patch) | |
tree | 41857830835eb747bc695450ad3df4c1e949e738 | |
parent | d6c7bbf152112aadb70f5bf66c4c9f036790d12d (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>
(cherry picked from commit b5c24f1bfdb98d19f2233d6296a80a68a533c820)
Reviewed-on: https://gerrit.libreoffice.org/6216
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | filter/source/msfilter/msvbahelper.cxx | 2 |
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] ) { |