summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-26 19:52:29 +0000
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-03-04 15:02:50 +0100
commit6a9a312c949c713920c1e3a27da72f5712d0fe67 (patch)
treedc177ed921342c2016ecebdef8d7078da6a6f3ed /hwpfilter
parent91c8f4d328407b7b9a11cacd70d6f63fbcfc479d (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 fda36e0953ca..28bc97212fba 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -1217,6 +1217,8 @@ hchar_string kstr2hstr(uchar const* src)
{
ret.push_back(src[i] << 8 | src[i+1]);
i++;
+ if (src[i] == '\0')
+ break;
}
}
return ret;