summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-16 14:25:25 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-17 01:19:57 +0200
commitee85316249902aa19f4426acae546ee79a083b07 (patch)
tree9bddf02882c971cf7f54c70c91a0f6a35638ef40 /hwpfilter
parent1ba5bae490f7e14e475e0b80f03e5f444cdce908 (diff)
coverity#1405158 Wrong sizeof argument
Change-Id: Ie6b7fc3d2b7d1ac709501698e55aabc72215b187 (cherry picked from commit b17177c63a4eac55dcdaa3006abec05ab71ca1b4) Reviewed-on: https://gerrit.libreoffice.org/36578 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hpara.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx
index 3149d65acf0a..cce909ead16e 100644
--- a/hwpfilter/source/hpara.cxx
+++ b/hwpfilter/source/hpara.cxx
@@ -78,7 +78,7 @@ HWPPara::HWPPara()
, cshape(new CharShape)
, linfo(nullptr)
{
- memset(cshape.get(), 0, sizeof(cshape));
+ memset(cshape.get(), 0, sizeof(CharShape));
memset(&pshape, 0, sizeof(pshape));
}