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