X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..86ff9b45d9a54125f3143e6a270a45677c0ca7fd:/src/common/log.cpp

diff --git a/src/common/log.cpp b/src/common/log.cpp
index c51d5c62bf..02b83693bf 100644
--- a/src/common/log.cpp
+++ b/src/common/log.cpp
@@ -65,6 +65,11 @@
   #include  "wx/mac/private.h"  // includes mac headers
 #endif
 
+#if defined(__MWERKS__) && wxUSE_UNICODE
+    #include <wtime.h>
+#endif
+
+
 // ----------------------------------------------------------------------------
 // non member functions
 // ----------------------------------------------------------------------------
@@ -717,9 +722,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
 
 #if defined(__WXMAC__) && !defined(__DARWIN__) && wxUSE_GUI
     Str255 pstr ;
-    strcpy( (char*) pstr , str.c_str() ) ;
-    strcat( (char*) pstr , ";g" ) ;
-    c2pstr( (char*) pstr ) ;
+    wxString output = str + wxT(";g") ;
+    wxMacStringToPascal( output.c_str() , pstr ) ;
 
     Boolean running = false ;