summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-26 19:52:29 +0000
committerAron Budea <aron.budea@collabora.com>2022-08-11 05:42:41 +0200
commit6882c55c54c9cd5639aa58cb5f4bc1fbba28e82e (patch)
tree6d6586a81b2ffab1ec12b40720108b748eca1c5a /hwpfilter
parent824f4d461a9b8f2fdf150b0ab18c9ce477b27a89 (diff)
ofz#44991 don't skip over terminator
Change-Id: Ibc942705a788db60c104d00916a45d595596285e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130560 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 4ac060fce70a4b116207d061efbb6185e6162d04)
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hcode.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx
index a895caec1eab..4001638e0046 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -1222,6 +1222,8 @@ hchar_string kstr2hstr(uchar const* src)
{
ret.push_back(src[i] << 8 | src[i+1]);
i++;
+ if (src[i] == '\0')
+ break;
}
}
return ret;