[Libreoffice-commits] .: automation/source extensions/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Mon Feb 7 08:33:21 PST 2011


 automation/source/simplecm/simplecm.cxx      |    2 +-
 extensions/source/logging/consolehandler.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 1020364a2265ed696f6a40a3bef61c3bb72cfb08
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Mon Feb 7 17:31:00 2011 +0100

    WaE: format not a string literal and no format arguments

diff --git a/automation/source/simplecm/simplecm.cxx b/automation/source/simplecm/simplecm.cxx
index ef77010..80b388d 100644
--- a/automation/source/simplecm/simplecm.cxx
+++ b/automation/source/simplecm/simplecm.cxx
@@ -45,7 +45,7 @@ void debug_printf( const char *chars )
     static BOOL bPrint = (getenv("DEBUG") != NULL);
     if ( bPrint )
     {
-        printf( chars );
+        printf( "%c\n", chars );
         fflush( stdout );
     }
 }
diff --git a/extensions/source/logging/consolehandler.cxx b/extensions/source/logging/consolehandler.cxx
index 9e51ca3..5cfac7e 100644
--- a/extensions/source/logging/consolehandler.cxx
+++ b/extensions/source/logging/consolehandler.cxx
@@ -250,9 +250,9 @@ namespace logging
             return sal_False;
 
         if ( _rRecord.Level >= m_nThreshold )
-            fprintf( stderr, sEntry.getStr() );
+            fprintf( stderr, "%s\n", sEntry.getStr() );
         else
-            fprintf( stdout, sEntry.getStr() );
+            fprintf( stdout, "%s\n", sEntry.getStr() );
 
         return sal_True;
     }


More information about the Libreoffice-commits mailing list