summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-17 09:25:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-17 16:11:59 +0200
commit1ccb5a63cd3f16f46c3d8cb7d86374805705804d (patch)
tree9f6fed8a36c746d4c4fd0a2e561f74042848ed99 /xmlsecurity
parentdbbe5d0cd721a815df5e4cbf3215f291a423f2b1 (diff)
loplugin:stringadd
Change-Id: I3bbb2df7b77ab971553b646690806385e5dea75d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150482 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
index 9c671d0c21c0..bd4ef701e6ed 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
@@ -690,8 +690,7 @@ static OUString CompatDNNSS(OUString const& rDN)
{
if (rDN[i] == '+' || rDN[i] == ',' || rDN[i] == ';')
{
- buf.append('"');
- buf.append(rDN[i]);
+ buf.append("\"" + OUStringChar(rDN[i]));
state = DEFAULT;
}
else if (rDN[i] == '\\')