summaryrefslogtreecommitdiff
path: root/cpputools/source
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2021-07-18 18:04:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-26 13:45:34 +0200
commit057191fb50ea2ae9cca42ef84329581094047db8 (patch)
treecd8aacf71182c60ca846dfec99299f944763e714 /cpputools/source
parent5d051f443bcd4b79041ef379bf032b76616f9ce2 (diff)
cpputools : no need to use fprintf for putting a string
Change-Id: Icb7f0930713d7c9fe2553913dbdc5e36617f856a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119128 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cpputools/source')
-rw-r--r--cpputools/source/unoexe/unoexe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index add2d0e4a192..2181e850d7fe 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -67,7 +67,7 @@ static bool s_quiet = false;
static void out( const char * pText )
{
if (! s_quiet)
- fprintf( stderr, "%s", pText );
+ fputs( pText, stderr );
}
static void out( std::u16string_view rText )
@@ -75,7 +75,7 @@ static void out( std::u16string_view rText )
if (! s_quiet)
{
OString aText( OUStringToOString( rText, RTL_TEXTENCODING_ASCII_US ) );
- fprintf( stderr, "%s", aText.getStr() );
+ fputs( aText.getStr(), stderr );
}
}