summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-19 09:01:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-19 10:26:49 +0100
commit3daec14fd62a6a1655813d26e470513237129263 (patch)
treec9f2c554e215fa8b166ae9c581e37b69a88aeaf2 /svtools
parent6194080c53b752f1bbf78b298c90ddee66830865 (diff)
sizeof(bool) is not required to be 1
Change-Id: I19ba4e27a4403d2c17d0bbf3f29c42e4745e4c41
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/imivctl2.cxx b/svtools/source/contnr/imivctl2.cxx
index 962ce2a31e99..f19ef08d6f45 100644
--- a/svtools/source/contnr/imivctl2.cxx
+++ b/svtools/source/contnr/imivctl2.cxx
@@ -580,7 +580,7 @@ void IcnGridMap_Impl::Create_Impl()
size_t nCellCount = static_cast<size_t>(_nGridRows) * _nGridCols;
_pGridMap = new bool[nCellCount];
- memset(_pGridMap, 0, nCellCount);
+ memset(_pGridMap, 0, nCellCount * sizeof(bool));
const size_t nCount = _pView->aEntries.size();
for( size_t nCur=0; nCur < nCount; nCur++ )