[ooo-build-commit] .: basic/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Oct 4 01:59:52 PDT 2010


 basic/source/app/msgedit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0d5d7d4785019869e23bad055c0c4f46ada00251
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Mon Oct 4 10:59:25 2010 +0200

    printf without format considered harmful

diff --git a/basic/source/app/msgedit.cxx b/basic/source/app/msgedit.cxx
index bb22390..1dbade0 100644
--- a/basic/source/app/msgedit.cxx
+++ b/basic/source/app/msgedit.cxx
@@ -217,7 +217,7 @@ void MsgEdit::AddAnyMsg( TTLogMsg *LogMsg )
                 // restore Original Msg
                 LogMsg->aDebugData.aMsg = aOriginalMsg;
 
-                printf( ByteString( aPrintMsg, RTL_TEXTENCODING_UTF8 ).GetBuffer() );
+                printf( "%s", ByteString( aPrintMsg, RTL_TEXTENCODING_UTF8 ).GetBuffer() );
             }
         }
     }


More information about the ooo-build-commit mailing list