summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-01 23:09:42 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-01 23:09:42 +0200
commit780f5bf5b177f93c8fd9ebd7ff1a322885074c8c (patch)
tree093fb9cfebb5cdc0043db545d7e0fd96b4cb7ec0 /svtools
parentSillyish clang WaE: array subscript is of type 'char' (diff)
downloadcore-780f5bf5b177f93c8fd9ebd7ff1a322885074c8c.tar.gz
core-780f5bf5b177f93c8fd9ebd7ff1a322885074c8c.zip
Presumably the intent is to zero the whole pHexTable, not just the 1st element
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/ixbm/xbmread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/ixbm/xbmread.cxx b/svtools/source/filter/ixbm/xbmread.cxx
index 6a8c2ee9db20..84a8b0237de9 100644
--- a/svtools/source/filter/ixbm/xbmread.cxx
+++ b/svtools/source/filter/ixbm/xbmread.cxx
@@ -65,7 +65,7 @@ XBMReader::~XBMReader()
void XBMReader::InitTable()
{
- memset( pHexTable, 0, sizeof( short ) );
+ memset( pHexTable, 0, sizeof( short ) * 256 );
pHexTable[(int)'0'] = 0;
pHexTable[(int)'1'] = 1;