summaryrefslogtreecommitdiff
path: root/vcl/generic/print/glyphset.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-08 15:58:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-08 15:58:55 +0200
commit3e3a37ebdc14f709fc970b291a9869bac6f9ba35 (patch)
tree75000a6abab0b0dc8df7d9260adea5bf5d44b67e /vcl/generic/print/glyphset.cxx
parent57cfc82a14f8af97b7c7ae03681457d2491cc8fc (diff)
Call WritePS with length argument, where known
...which also avoids clang-analyzer-deadcode.DeadStores on the final update of the length variable when assembling the data prior to the call Change-Id: I046b1fa253e1d26a09c5095516e336b471b2e2f0
Diffstat (limited to 'vcl/generic/print/glyphset.cxx')
-rw-r--r--vcl/generic/print/glyphset.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/generic/print/glyphset.cxx b/vcl/generic/print/glyphset.cxx
index cf6d28956bf7..0c835e86e2a9 100644
--- a/vcl/generic/print/glyphset.cxx
+++ b/vcl/generic/print/glyphset.cxx
@@ -408,7 +408,7 @@ GlyphSet::PSDefineReencodedFont (osl::File* pOutFile, sal_Int32 nGlyphSetID)
nSize += psp::appendStr (" psp_definefont\n",
pEncodingVector + nSize);
- psp::WritePS (pOutFile, pEncodingVector);
+ psp::WritePS (pOutFile, pEncodingVector, nSize);
}
OString
@@ -672,7 +672,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
}
nSize += psp::appendStr ("] def\n", pEncodingVector + nSize);
- psp::WritePS (pOutFile, pEncodingVector);
+ psp::WritePS (pOutFile, pEncodingVector, nSize);
PSDefineReencodedFont (pOutFile, nGlyphSetID);
}