[PATCH] ure: fix fprintf compile warnings in unoexe.cxx

Nigel Hawkins n.hawkins at gmx.com
Wed Nov 3 08:41:00 PDT 2010


---
 cpputools/source/unoexe/unoexe.cxx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index bac822b..83afad1 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -132,7 +132,7 @@ static sal_Bool s_quiet = false;
 static inline void out( const sal_Char * pText )
 {
     if (! s_quiet)
-        fprintf( stderr, pText );
+        fprintf( stderr, "%s", pText );
 }
 //--------------------------------------------------------------------------------------------------
 static inline void out( const OUString & rText )
@@ -140,7 +140,7 @@ static inline void out( const OUString & rText )
     if (! s_quiet)
     {
         OString aText( OUStringToOString( rText, RTL_TEXTENCODING_ASCII_US ) );
-        fprintf( stderr, aText.getStr() );
+        fprintf( stderr, "%s", aText.getStr() );
     }
 }
 
-- 
1.7.0.4


--=-+xNkdnwa378X1YSzToqn
Content-Disposition: attachment; filename="0001-vcl-fix-fprintf-compile-warnings-in-sft.cxx.patch"
Content-Type: text/x-patch; name="0001-vcl-fix-fprintf-compile-warnings-in-sft.cxx.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



More information about the LibreOffice mailing list