[Libreoffice-commits] core.git: 2 commits - cli_ure/source odk/source

Michael Stahl mstahl at redhat.com
Thu Mar 12 03:34:13 PDT 2015


 cli_ure/source/climaker/climaker_app.cxx   |    4 ++--
 odk/source/unoapploader/win/unoapploader.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fe3feff8bb72fafd721ede0be5cb3d0f98a76bd5
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu Mar 12 00:19:26 2015 +0100

    cli_ure: PVS-Studio V618 non-const format string
    
    Change-Id: I54834111ce8aac91f2a6605473bef5eeaa4fb171

diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx
index 7d5b808..b8e3f0f 100644
--- a/cli_ure/source/climaker/climaker_app.cxx
+++ b/cli_ure/source/climaker/climaker_app.cxx
@@ -258,7 +258,7 @@ SAL_IMPLEMENT_MAIN()
     sal_uInt32 nCount = osl_getCommandArgCount();
     if (0 == nCount)
     {
-        printf( s_usingText );
+        puts( s_usingText );
         return 0;
     }
 
@@ -310,7 +310,7 @@ SAL_IMPLEMENT_MAIN()
             // options
             if (is_option( info_help, &nPos ))
             {
-                printf( s_usingText );
+                puts( s_usingText );
                 return 0;
             }
             else if (read_argument( &cmd_arg, info_types, &nPos ))
commit 1a8b6b3f1dcb73c31e28f47e1d06eda1ef6e0ced
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu Mar 12 00:16:15 2015 +0100

    odk: PVS-Studio V618 non-const format string
    
    Change-Id: I38c5abfc503fae11e6cb7233f4163b41ed6c699e

diff --git a/odk/source/unoapploader/win/unoapploader.c b/odk/source/unoapploader/win/unoapploader.c
index 36ae8ca..7579aa4 100644
--- a/odk/source/unoapploader/win/unoapploader.c
+++ b/odk/source/unoapploader/win/unoapploader.c
@@ -402,7 +402,7 @@ void writeError( const char* errstr )
     FILE* ferr = getErrorFile( 1 );
     if ( ferr != NULL )
     {
-        fprintf( ferr, errstr );
+        fputs( errstr, ferr );
         fflush( ferr );
     }
 }


More information about the Libreoffice-commits mailing list