This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO418
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO418 by this push:
     new 68c47c4  Fix -Wformat-security warnings. Contributed by: truckman
68c47c4 is described below

commit 68c47c4eda3c7681a32d61b80b32ef04addeffaa
Author: mseidel <msei...@apache.org>
AuthorDate: Tue Jun 30 16:01:49 2020 +0200

    Fix -Wformat-security warnings. Contributed by: truckman
---
 main/vcl/source/fontsubset/cff.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/vcl/source/fontsubset/cff.cxx 
b/main/vcl/source/fontsubset/cff.cxx
index 941702f..b2c5137 100644
--- a/main/vcl/source/fontsubset/cff.cxx
+++ b/main/vcl/source/fontsubset/cff.cxx
@@ -2062,7 +2062,7 @@ void Type1Emitter::emitValVector( const char* pLineHead, 
const char* pLineTail,
                return;
 
        // emit the line head
-       mpPtr += sprintf( mpPtr, pLineHead);
+       mpPtr += sprintf( mpPtr, "%s", pLineHead);
        // emit the vector values
        ValVector::value_type aVal = 0;
        for( ValVector::const_iterator it = rVector.begin();;) {
@@ -2075,7 +2075,7 @@ void Type1Emitter::emitValVector( const char* pLineHead, 
const char* pLineTail,
        // emit the last value
        mpPtr += dbl2str( mpPtr, aVal);
        // emit the line tail
-       mpPtr += sprintf( mpPtr, pLineTail);
+       mpPtr += sprintf( mpPtr, "%s", pLineTail);
 }
 
 // --------------------------------------------------------------------

Reply via email to