From a0b13884b41ff57c24cc1f3598c3fb23b8b9c0dc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 16 May 2012 13:24:49 +0000 Subject: [PATCH] Don't use printf() with non-literal string as format. Replace calls to printf() with puts() in the typetest sample. See #14311. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/typetest/typetest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/typetest/typetest.cpp b/samples/typetest/typetest.cpp index 69e074b65d..0f3a339c0b 100644 --- a/samples/typetest/typetest.cpp +++ b/samples/typetest/typetest.cpp @@ -892,10 +892,10 @@ void MyApp::DoUnicodeDemo(wxCommandEvent& WXUNUSED(event)) printf( "\n\nConversion with wxConvLocal:\n" ); wxConvCurrent = &wxConvLocal; - printf( (const char*) str.mbc_str() ); + puts( str.mbc_str() ); printf( "\n\nConversion with wxConvLibc:\n" ); wxConvCurrent = &wxConvLibc; - printf( (const char*) str.mbc_str() ); + puts( str.mbc_str() ); } #endif -- 2.47.2