File ucblogo-wxString-to-c_str.patch of Package ucblogo
Index: ucblogo-6.2.2/wxMain.cpp
===================================================================
--- ucblogo-6.2.2.orig/wxMain.cpp
+++ ucblogo-6.2.2/wxMain.cpp
@@ -222,7 +222,7 @@ extern "C" int wxUnget_c(int c, FILE * f
extern "C" void getExecutableDir(char * path, int maxlen) {
wxString executable = wxStandardPaths::Get().GetExecutablePath();
wxString executable_dir = wxFileName(executable).GetPath();
- strncpy(path, executable_dir, maxlen);
+ strncpy(path, executable_dir.c_str(), maxlen);
path[maxlen - 1] = '\0';
}